Module org.elasticsearch.server
Package org.elasticsearch.index.codec
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
FieldsFields inherited from class org.apache.lucene.codecs.FilterCodec
delegate -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.codecs.FilterCodec
compoundFormat, docValuesFormat, fieldInfosFormat, knnVectorsFormat, liveDocsFormat, normsFormat, pointsFormat, segmentInfoFormat, storedFieldsFormat, termVectorsFormatMethods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
-
Field Details
-
TRACK_POSTINGS_IN_MEMORY_BYTES
-
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:
postingsFormatin classorg.apache.lucene.codecs.FilterCodec
-