Java org.apache.lucene.util.packed PackedInts fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.util.packed PackedInts fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.util.packed PackedInts.

The text is from its open source code.

Field

floatFASTEST
At most 700% memory overhead, always select a direct implementation.
floatFAST
At most 50% memory overhead, always select a reasonably fast implementation.
floatDEFAULT
At most 25% memory overhead.
floatCOMPACT
No memory overhead at all, but the returned implementation may be slow.
intVERSION_CURRENT

Method

intbitsRequired(long maxValue)
Returns how many bits are required to hold values up to and including maxValue NOTE: This method returns at least 1.
voidcheckVersion(int version)
Check the validity of a version number.
voidcopy(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.
voidcopy(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.
FormatAndBitsfastestFormatAndBits(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.
DecodergetDecoder(Format format, int version, int bitsPerValue)
Get a Decoder .
ReadergetDirectReaderNoHeader(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.
EncodergetEncoder(Format format, int version, int bitsPerValue)
Get an Encoder .
MutablegetMutable(int valueCount, int bitsPerValue, float acceptableOverheadRatio)
Create a packed integer array with the given amount of values initialized to 0.
MutablegetMutable(int valueCount, int bitsPerValue, PackedInts.Format format)
Same as #getMutable(int,int,float) with a pre-computed number of bits per value and format.
ReaderIteratorgetReaderIteratorNoHeader(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.
ReadergetReaderNoHeader(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.
WritergetWriterNoHeader(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.
longmaxValue(int bitsPerValue)
Calculates the maximum unsigned long that can be expressed with the given number of bits.
intunsignedBitsRequired(long bits)
Returns how many bits are required to store bits, interpreted as an unsigned value.