Module org.elasticsearch.server
Interface NumericFieldReader.Decoder
- Enclosing interface:
NumericFieldReader
public static interface NumericFieldReader.Decoder
Per-block decoder for numeric values and ordinals.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeBlock(org.apache.lucene.store.DataInput input, long[] values, int count) Decodes a block of numeric values.voiddecodeOrdinals(org.apache.lucene.store.DataInput input, long[] values, int bitsPerOrd) Decodes a block of ordinal values.
-
Method Details
-
decodeBlock
void decodeBlock(org.apache.lucene.store.DataInput input, long[] values, int count) throws IOException Decodes a block of numeric values.- Parameters:
input- the input to read compressed bytes fromvalues- the output array to fill with decoded valuescount- the number of values to decode- Throws:
IOException
-
decodeOrdinals
void decodeOrdinals(org.apache.lucene.store.DataInput input, long[] values, int bitsPerOrd) throws IOException Decodes a block of ordinal values.- Parameters:
input- the input to read compressed bytes fromvalues- the output array to fill with decoded ordinal valuesbitsPerOrd- the number of bits per ordinal- Throws:
IOException
-