public class DirectReader extends Object
DirectWriter
Example usage:
int bitsPerValue = 100; IndexInput in = dir.openInput("packed", IOContext.DEFAULT); LongValues values = DirectReader.getInstance(in.randomAccessSlice(start, end), bitsPerValue); for (int i = 0; i < numValues; i++) { long value = values.get(i); }
DirectWriter
Constructor and Description |
---|
DirectReader() |
Modifier and Type | Method and Description |
---|---|
static LongValues |
getInstance(RandomAccessInput slice,
int bitsPerValue)
Retrieves an instance from the specified slice written decoding
bitsPerValue for each value |
public static LongValues getInstance(RandomAccessInput slice, int bitsPerValue)
bitsPerValue
for each valueCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.