Class Lucene50StoredFieldsFormat.LZ4FastCompressor
- java.lang.Object
-
- org.apache.lucene.backward_codecs.compressing.Compressor
-
- org.apache.lucene.backward_codecs.lucene50.Lucene50StoredFieldsFormat.LZ4FastCompressor
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- Lucene50StoredFieldsFormat
private static final class Lucene50StoredFieldsFormat.LZ4FastCompressor extends Compressor
-
-
Field Summary
Fields Modifier and Type Field Description private LZ4.FastCompressionHashTable
ht
-
Constructor Summary
Constructors Constructor Description LZ4FastCompressor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
compress(byte[] bytes, int off, int len, DataOutput out)
Compress bytes intoout
.
-
-
-
Field Detail
-
ht
private final LZ4.FastCompressionHashTable ht
-
-
Method Detail
-
compress
public void compress(byte[] bytes, int off, int len, DataOutput out) throws java.io.IOException
Description copied from class:Compressor
Compress bytes intoout
. It is the responsibility of the compressor to add all necessary information so that aDecompressor
will know when to stop decompressing bytes from the stream.- Specified by:
compress
in classCompressor
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
-