shevek / lzo-java

Pure Java implementation of the liblzo2 LZO compression algorithm
http://www.anarres.org/
GNU General Public License v3.0
66 stars 19 forks source link

LZO1X999 initialization refactoring #3

Closed clayrat closed 9 years ago

clayrat commented 9 years ago

I'd like to be able to use LZO1X999 from Hadoop, but it looks like lzo-hadoop is using the constraint system to initialize the compressor. So I refactored the way LZO1X999 is initialized.

It feels slightly weird to use null in the compressor selection logic, but I guess it works.

shevek commented 9 years ago

This is much more the way I was hoping for. :-) I'm going to review a little more carefully as it's a little more intrusive, but I'm very positive on this.

shevek commented 9 years ago

1.0.4 (belatedly) released, thank you for the code.