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.
  • Field Details

    • MODE_KEY

      public static final String MODE_KEY
      Attribute key for compression mode.
  • Constructor Details

  • 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:
      fieldsWriter in class org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsFormat
      Throws:
      IOException
    • getMode