Module org.elasticsearch.server
Class Zstd814StoredFieldsFormat
java.lang.Object
org.apache.lucene.codecs.StoredFieldsFormat
org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsFormat
org.elasticsearch.index.codec.zstd.Zstd814StoredFieldsFormat
public final class Zstd814StoredFieldsFormat
extends org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsFormat
StoredFieldsFormat that compresses blocks of data using ZStandard.
Unlike Lucene's default stored fields format, this format does not make use of dictionaries (even though ZStandard has great support for
dictionaries!). This is mostly due to the fact that LZ4/DEFLATE have short sliding windows that they can use to find duplicate strings
(64kB and 32kB respectively). In contrast, ZSTD doesn't have such a limitation and can better take advantage of large compression
buffers.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.codecs.StoredFieldsWriterfieldsWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.store.IOContext context) getMode()Methods inherited from class org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsFormat
fieldsReader, toString
-
Field Details
-
MODE_KEY
Attribute key for compression mode.
-
-
Method Details
-
fieldsWriter
public org.apache.lucene.codecs.StoredFieldsWriter fieldsWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.store.IOContext context) throws IOException - Overrides:
fieldsWriterin classorg.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsFormat- Throws:
IOException
-
getMode
-