Package | Description |
---|---|
org.apache.lucene.util.packed |
Packed integer arrays and streams.
|
Modifier and Type | Class and Description |
---|---|
class |
GrowableWriter
Implements
PackedInts.Mutable , but grows the
bit count of the underlying packed ints on-demand. |
static class |
PackedInts.Mutable
A packed integer array that can be modified.
|
static class |
PackedInts.NullReader
A
PackedInts.Reader which has all its values equal to 0 (bitsPerValue = 0). |
Modifier and Type | Method and Description |
---|---|
static PackedInts.Reader |
PackedInts.getDirectReader(IndexInput in)
Construct a direct
PackedInts.Reader from an IndexInput . |
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.Reader |
PackedInts.getReader(DataInput in)
Restore a
PackedInts.Reader from a 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. |
Modifier and Type | Method and Description |
---|---|
static void |
PackedInts.copy(PackedInts.Reader src,
int srcPos,
PackedInts.Mutable dest,
int destPos,
int len,
int mem)
Copy
src[srcPos:srcPos+len] into
dest[destPos:destPos+len] using at most mem
bytes. |
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.