Example usage for Java org.apache.lucene.util.packed PackedInts fields, constructors, methods, implement or subclass
The text is from its open source code.
float | FASTEST At most 700% memory overhead, always select a direct implementation. |
float | FAST At most 50% memory overhead, always select a reasonably fast implementation. |
float | DEFAULT At most 25% memory overhead. |
float | COMPACT No memory overhead at all, but the returned implementation may be slow. |
int | VERSION_CURRENT |
int | bitsRequired(long maxValue) Returns how many bits are required to hold values up to and including maxValue NOTE: This method returns at least 1. |
void | checkVersion(int version) Check the validity of a version number. |
void | copy(Reader src, int srcPos, Mutable dest, int destPos, int len, int mem) Copy src[srcPos:srcPos+len] into dest[destPos:destPos+len] using at most mem bytes. |
void | copy(Reader src, int srcPos, Mutable dest, int destPos, int len, long[] buf) Same as #copy(Reader,int,Mutable,int,int,int) but using a pre-allocated buffer. |
FormatAndBits | fastestFormatAndBits(int valueCount, int bitsPerValue, float acceptableOverheadRatio) Try to find the Format and number of bits per value that would restore from disk the fastest reader whose overhead is less than acceptableOverheadRatio . |
Decoder | getDecoder(Format format, int version, int bitsPerValue) Get a Decoder . |
Reader | getDirectReaderNoHeader(final IndexInput in, Format format, int version, int valueCount, int bitsPerValue) Expert: Construct a direct Reader from a stream without reading metadata at the beginning of the stream. |
Encoder | getEncoder(Format format, int version, int bitsPerValue) Get an Encoder . |
Mutable | getMutable(int valueCount, int bitsPerValue, float acceptableOverheadRatio) Create a packed integer array with the given amount of values initialized to 0. |
Mutable | getMutable(int valueCount, int bitsPerValue, PackedInts.Format format) Same as #getMutable(int,int,float) with a pre-computed number of bits per value and format. |
ReaderIterator | getReaderIteratorNoHeader(DataInput in, Format format, int version, int valueCount, int bitsPerValue, int mem) Expert: Restore a ReaderIterator from a stream without reading metadata at the beginning of the stream. |
Reader | getReaderNoHeader(DataInput in, Format format, int version, int valueCount, int bitsPerValue) Expert: Restore a Reader from a stream without reading metadata at the beginning of the stream. |
Writer | getWriterNoHeader(DataOutput out, Format format, int valueCount, int bitsPerValue, int mem) Expert: Create a packed integer array writer for the given output, format, value count, and number of bits per value. |
long | maxValue(int bitsPerValue) Calculates the maximum unsigned long that can be expressed with the given number of bits. |
int | unsignedBitsRequired(long bits) Returns how many bits are required to store bits , interpreted as an unsigned value. |