Class LZ4WithPresetDictCompressionMode.LZ4WithPresetDictCompressor
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.Compressor
-
- org.apache.lucene.codecs.lucene87.LZ4WithPresetDictCompressionMode.LZ4WithPresetDictCompressor
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- LZ4WithPresetDictCompressionMode
private static class LZ4WithPresetDictCompressionMode.LZ4WithPresetDictCompressor extends Compressor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]buffer(package private) ByteBuffersDataOutputcompressed(package private) LZ4.FastCompressionHashTablehashTable
-
Constructor Summary
Constructors Constructor Description LZ4WithPresetDictCompressor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcompress(byte[] bytes, int off, int len, DataOutput out)Compress bytes intoout.private voiddoCompress(byte[] bytes, int dictLen, int len, DataOutput out)
-
-
-
Field Detail
-
compressed
final ByteBuffersDataOutput compressed
-
hashTable
final LZ4.FastCompressionHashTable hashTable
-
buffer
byte[] buffer
-
-
Method Detail
-
doCompress
private void doCompress(byte[] bytes, int dictLen, int len, DataOutput out) throws java.io.IOException- Throws:
java.io.IOException
-
compress
public void compress(byte[] bytes, int off, int len, DataOutput out) throws java.io.IOExceptionDescription copied from class:CompressorCompress bytes intoout. It is the responsibility of the compressor to add all necessary information so that aDecompressorwill know when to stop decompressing bytes from the stream.- Specified by:
compressin classCompressor- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
-