final class Direct64 extends PackedInts.MutableImpl
| Modifier and Type | Field and Description |
|---|---|
(package private) long[] |
values |
bitsPerValue, valueCount| Constructor and Description |
|---|
Direct64(int valueCount) |
Direct64(int packedIntsVersion,
DataInput in,
int valueCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Sets all values to 0.
|
void |
fill(int fromIndex,
int toIndex,
long val)
Fill the mutable from
fromIndex (inclusive) to
toIndex (exclusive) with val. |
long |
get(int index)
Get the long at the given index.
|
int |
get(int index,
long[] arr,
int off,
int len)
Bulk get: read at least one and at most
len longs starting
from index into arr[off:off+len] and return
the actual number of values that have been read. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
void |
set(int index,
long value)
Set the value at the given index in the array.
|
int |
set(int index,
long[] arr,
int off,
int len)
Bulk set: set at least one and at most
len longs starting
at off in arr into this mutable, starting at
index. |
getBitsPerValue, size, toStringgetFormat, saveclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildResourcesDirect64(int valueCount)
Direct64(int packedIntsVersion,
DataInput in,
int valueCount)
throws java.io.IOException
java.io.IOExceptionpublic long get(int index)
PackedInts.Readerget in class PackedInts.Readerpublic void set(int index,
long value)
PackedInts.Mutableset in class PackedInts.Mutableindex - where the value should be positioned.value - a value conforming to the constraints set by the array.public long ramBytesUsed()
Accountablepublic void clear()
PackedInts.Mutableclear in class PackedInts.Mutablepublic int get(int index,
long[] arr,
int off,
int len)
PackedInts.Readerlen longs starting
from index into arr[off:off+len] and return
the actual number of values that have been read.get in class PackedInts.Readerpublic int set(int index,
long[] arr,
int off,
int len)
PackedInts.Mutablelen longs starting
at off in arr into this mutable, starting at
index. Returns the actual number of values that have been
set.set in class PackedInts.Mutablepublic void fill(int fromIndex,
int toIndex,
long val)
PackedInts.MutablefromIndex (inclusive) to
toIndex (exclusive) with val.fill in class PackedInts.Mutable