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
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Attribute key for compression mode.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.codecs.StoredFieldsWriter
    fieldsWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.SegmentInfo si, org.apache.lucene.store.IOContext context)
     
     

    Methods inherited from class org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsFormat

    fieldsReader, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • MODE_KEY

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