Class TrackingPostingsInMemoryBytesCodec

java.lang.Object
org.apache.lucene.codecs.Codec
org.apache.lucene.codecs.FilterCodec
org.elasticsearch.index.codec.TrackingPostingsInMemoryBytesCodec
All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI

public class TrackingPostingsInMemoryBytesCodec extends org.apache.lucene.codecs.FilterCodec
A codec that tracks the length of the min and max written terms. Used to improve memory usage estimates in serverless, since FieldReader keeps an in-memory reference to the min and max term.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final FeatureFlag
     

    Fields inherited from class org.apache.lucene.codecs.FilterCodec

    delegate
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrackingPostingsInMemoryBytesCodec(org.apache.lucene.codecs.Codec delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.codecs.PostingsFormat
     

    Methods inherited from class org.apache.lucene.codecs.FilterCodec

    compoundFormat, docValuesFormat, fieldInfosFormat, knnVectorsFormat, liveDocsFormat, normsFormat, pointsFormat, segmentInfoFormat, storedFieldsFormat, termVectorsFormat

    Methods inherited from class org.apache.lucene.codecs.Codec

    availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString

    Methods inherited from class java.lang.Object

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

    • TRACK_POSTINGS_IN_MEMORY_BYTES

      public static final FeatureFlag TRACK_POSTINGS_IN_MEMORY_BYTES
    • IN_MEMORY_POSTINGS_BYTES_KEY

      public static final String IN_MEMORY_POSTINGS_BYTES_KEY
      See Also:
  • Constructor Details

    • TrackingPostingsInMemoryBytesCodec

      public TrackingPostingsInMemoryBytesCodec(org.apache.lucene.codecs.Codec delegate)
  • Method Details

    • postingsFormat

      public org.apache.lucene.codecs.PostingsFormat postingsFormat()
      Overrides:
      postingsFormat in class org.apache.lucene.codecs.FilterCodec