public class PackedLongValues extends LongValues implements Accountable
LongValues
instance.Modifier and Type | Class and Description |
---|---|
static class |
PackedLongValues.Builder
A Builder for a
PackedLongValues instance. |
class |
PackedLongValues.Iterator
An iterator over long values.
|
Modifier and Type | Field and Description |
---|---|
private static long |
BASE_RAM_BYTES_USED |
(package private) static int |
DEFAULT_PAGE_SIZE |
(package private) static int |
MAX_PAGE_SIZE |
(package private) static int |
MIN_PAGE_SIZE |
(package private) int |
pageMask |
(package private) int |
pageShift |
private long |
ramBytesUsed |
private long |
size |
(package private) PackedInts.Reader[] |
values |
IDENTITY, ZEROES
Constructor and Description |
---|
PackedLongValues(int pageShift,
int pageMask,
PackedInts.Reader[] values,
long size,
long ramBytesUsed) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
decodeBlock(int block,
long[] dest) |
static PackedLongValues.Builder |
deltaPackedBuilder(float acceptableOverheadRatio) |
static PackedLongValues.Builder |
deltaPackedBuilder(int pageSize,
float acceptableOverheadRatio)
Return a new
PackedLongValues.Builder that will compress efficiently integers that
are close to each other. |
(package private) long |
get(int block,
int element) |
long |
get(long index)
Get value at
index . |
PackedLongValues.Iterator |
iterator()
Return an iterator over the values of this array.
|
static PackedLongValues.Builder |
monotonicBuilder(float acceptableOverheadRatio) |
static PackedLongValues.Builder |
monotonicBuilder(int pageSize,
float acceptableOverheadRatio)
Return a new
PackedLongValues.Builder that will compress efficiently integers that
would be a monotonic function of their index. |
static PackedLongValues.Builder |
packedBuilder(float acceptableOverheadRatio) |
static PackedLongValues.Builder |
packedBuilder(int pageSize,
float acceptableOverheadRatio)
Return a new
PackedLongValues.Builder that will compress efficiently positive integers. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
long |
size()
Get the number of values in this array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
private static final long BASE_RAM_BYTES_USED
static final int DEFAULT_PAGE_SIZE
static final int MIN_PAGE_SIZE
static final int MAX_PAGE_SIZE
final PackedInts.Reader[] values
final int pageShift
final int pageMask
private final long size
private final long ramBytesUsed
PackedLongValues(int pageShift, int pageMask, PackedInts.Reader[] values, long size, long ramBytesUsed)
public static PackedLongValues.Builder packedBuilder(int pageSize, float acceptableOverheadRatio)
PackedLongValues.Builder
that will compress efficiently positive integers.public static PackedLongValues.Builder packedBuilder(float acceptableOverheadRatio)
packedBuilder(int, float)
public static PackedLongValues.Builder deltaPackedBuilder(int pageSize, float acceptableOverheadRatio)
PackedLongValues.Builder
that will compress efficiently integers that
are close to each other.public static PackedLongValues.Builder deltaPackedBuilder(float acceptableOverheadRatio)
deltaPackedBuilder(int, float)
public static PackedLongValues.Builder monotonicBuilder(int pageSize, float acceptableOverheadRatio)
PackedLongValues.Builder
that will compress efficiently integers that
would be a monotonic function of their index.public static PackedLongValues.Builder monotonicBuilder(float acceptableOverheadRatio)
monotonicBuilder(int, float)
public final long size()
int decodeBlock(int block, long[] dest)
long get(int block, int element)
public final long get(long index)
LongValues
index
.get
in class LongValues
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
public PackedLongValues.Iterator iterator()