Package | Description |
---|---|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene80 for an overview
of the index format. |
org.apache.lucene.util.packed |
Packed integer arrays and streams.
|
Modifier and Type | Method and Description |
---|---|
private static int |
ForUtil.encodedSize(PackedInts.Format format,
int packedIntsVersion,
int bitsPerValue)
Compute the number of bytes required to encode a block of values that require
bitsPerValue bits per value with format format . |
Modifier and Type | Field and Description |
---|---|
PackedInts.Format |
PackedInts.FormatAndBits.format |
(package private) PackedInts.Format |
PackedReaderIterator.format |
(package private) PackedInts.Format |
PackedWriter.format |
(package private) PackedInts.Format |
PagedMutable.format |
Modifier and Type | Method and Description |
---|---|
static PackedInts.Format |
PackedInts.Format.byId(int id)
Get a format according to its ID.
|
protected PackedInts.Format |
Packed64SingleBlock.getFormat() |
(package private) PackedInts.Format |
PackedInts.Mutable.getFormat()
The underlying format.
|
protected abstract PackedInts.Format |
PackedInts.Writer.getFormat()
The format used to serialize values.
|
protected PackedInts.Format |
PackedWriter.getFormat() |
static PackedInts.Format |
PackedInts.Format.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PackedInts.Format[] |
PackedInts.Format.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static PackedInts.Decoder |
PackedInts.getDecoder(PackedInts.Format format,
int version,
int bitsPerValue)
Get a
PackedInts.Decoder . |
static PackedInts.Reader |
PackedInts.getDirectReaderNoHeader(IndexInput in,
PackedInts.Format format,
int version,
int valueCount,
int bitsPerValue)
Expert: Construct a direct
PackedInts.Reader from a stream without reading
metadata at the beginning of the stream. |
static PackedInts.Encoder |
PackedInts.getEncoder(PackedInts.Format format,
int version,
int bitsPerValue)
Get an
PackedInts.Encoder . |
static PackedInts.Mutable |
PackedInts.getMutable(int valueCount,
int bitsPerValue,
PackedInts.Format format)
Same as
PackedInts.getMutable(int, int, float) with a pre-computed number
of bits per value and format. |
static PackedInts.ReaderIterator |
PackedInts.getReaderIteratorNoHeader(DataInput in,
PackedInts.Format format,
int version,
int valueCount,
int bitsPerValue,
int mem)
Expert: Restore a
PackedInts.ReaderIterator from a stream without reading
metadata at the beginning of the stream. |
static PackedInts.Reader |
PackedInts.getReaderNoHeader(DataInput in,
PackedInts.Format format,
int version,
int valueCount,
int bitsPerValue)
Expert: Restore a
PackedInts.Reader from a stream without reading metadata at
the beginning of the stream. |
static PackedInts.Writer |
PackedInts.getWriterNoHeader(DataOutput out,
PackedInts.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.
|
static BulkOperation |
BulkOperation.of(PackedInts.Format format,
int bitsPerValue) |
Constructor and Description |
---|
FormatAndBits(PackedInts.Format format,
int bitsPerValue) |
PackedReaderIterator(PackedInts.Format format,
int packedIntsVersion,
int valueCount,
int bitsPerValue,
DataInput in,
int mem) |
PackedWriter(PackedInts.Format format,
DataOutput out,
int valueCount,
int bitsPerValue,
int mem) |
PagedMutable(long size,
int pageSize,
int bitsPerValue,
PackedInts.Format format) |