Class LegacyDirectReader
- java.lang.Object
-
- org.apache.lucene.backward_codecs.packed.LegacyDirectReader
-
public class LegacyDirectReader extends java.lang.ObjectRetrieves an instance previously written byLegacyDirectWriterExample 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:
LegacyDirectWriter
-
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateLegacyDirectReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
getInstance
public static LongValues getInstance(RandomAccessInput slice, int bitsPerValue)
Retrieves an instance from the specified slice written decodingbitsPerValuefor each value
-
getInstance
public static LongValues getInstance(RandomAccessInput slice, int bitsPerValue, long offset)
Retrieves an instance from the specifiedoffsetof the given slice decodingbitsPerValuefor each value
-
-