Class LZ4WithPresetDictCompressionMode.LZ4WithPresetDictCompressor
java.lang.Object
org.apache.lucene.codecs.compressing.Compressor
org.apache.lucene.backward_codecs.lucene87.LZ4WithPresetDictCompressionMode.LZ4WithPresetDictCompressor
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- LZ4WithPresetDictCompressionMode
private static class LZ4WithPresetDictCompressionMode.LZ4WithPresetDictCompressor
extends Compressor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) byte[]
(package private) final ByteBuffersDataOutput
(package private) final LZ4.FastCompressionHashTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
compress
(byte[] bytes, int off, int len, DataOutput out) Compress bytes intoout
.private void
doCompress
(byte[] bytes, int dictLen, int len, DataOutput out)
-
Field Details
-
compressed
-
hashTable
-
buffer
byte[] buffer
-
-
Constructor Details
-
LZ4WithPresetDictCompressor
LZ4WithPresetDictCompressor()
-
-
Method Details
-
doCompress
- Throws:
IOException
-
compress
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:
IOException
-
close
- Throws:
IOException
-