Module org.elasticsearch.server
Interface NumericFieldReader
public interface NumericFieldReader
Reads numeric doc values for a single field during segment reading.
Each codec version provides its own implementation via
AbstractTSDBDocValuesProducer.createNumericFieldReader(org.elasticsearch.index.codec.tsdb.AbstractTSDBDocValuesProducer.NumericEntry, int). The two levels are:
- Per-field:
readField(org.apache.lucene.store.IndexInput, org.elasticsearch.index.codec.tsdb.AbstractTSDBDocValuesProducer.NumericEntry, int)reads the full numeric entry metadata - Per-block:
NumericFieldReader.Decoder.decodeBlock(org.apache.lucene.store.DataInput, long[], int)andNumericFieldReader.Decoder.decodeOrdinals(org.apache.lucene.store.DataInput, long[], int)decode individual blocks during iteration
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacePer-block decoder for numeric values and ordinals. -
Method Summary
Modifier and TypeMethodDescriptiondecoder()Returns a decoder for per-block numeric value decoding.voidreadField(org.apache.lucene.store.IndexInput meta, AbstractTSDBDocValuesProducer.NumericEntry entry, int numericBlockShift) Reads the full numeric field metadata: value counts, ordinal detection, codec-specific header, offsets, and DISI.
-
Method Details
-
readField
void readField(org.apache.lucene.store.IndexInput meta, AbstractTSDBDocValuesProducer.NumericEntry entry, int numericBlockShift) throws IOException Reads the full numeric field metadata: value counts, ordinal detection, codec-specific header, offsets, and DISI.- Parameters:
meta- the metadata input streamentry- the numeric entry to populatenumericBlockShift- the block shift for numeric encoding- Throws:
IOException
-
decoder
NumericFieldReader.Decoder decoder()Returns a decoder for per-block numeric value decoding.- Returns:
- a new decoder instance
-