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.
|
IDENTITY, ZEROES
NULL_ACCOUNTABLE
Modifier and Type | Method and Description |
---|---|
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. |
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
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()
public final long get(long index)
LongValues
index
.get
in class LongValues
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
public PackedLongValues.Iterator iterator()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.