Class LegacyDirectReader
java.lang.Object
org.apache.lucene.backward_codecs.packed.LegacyDirectReader
Retrieves an instance previously written by
LegacyDirectWriter
Example usage:
int bitsPerValue = 100;
IndexInput in = dir.openInput("packed", IOContext.DEFAULT);
LongValues values = LegacyDirectReader.getInstance(in.randomAccessSlice(start, end), bitsPerValue);
for (int i = 0; i < numValues; i++) {
long value = values.get(i);
}
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic LongValuesgetInstance(RandomAccessInput slice, int bitsPerValue) Retrieves an instance from the specified slice written decodingbitsPerValuefor each valuestatic LongValuesgetInstance(RandomAccessInput slice, int bitsPerValue, long offset) Retrieves an instance from the specifiedoffsetof the given slice decodingbitsPerValuefor each value
-
Method Details
-
getInstance
Retrieves an instance from the specified slice written decodingbitsPerValuefor each value -
getInstance
Retrieves an instance from the specifiedoffsetof the given slice decodingbitsPerValuefor each value
-