public static final class PackedInts.NullReader extends PackedInts.Reader
PackedInts.Reader which has all its values equal to 0 (bitsPerValue = 0).NULL_ACCOUNTABLE| Constructor and Description |
|---|
NullReader(int valueCount)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcespublic long get(int index)
PackedInts.Readerget in class PackedInts.Readerpublic 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 size()
size in class PackedInts.Readerpublic long ramBytesUsed()
AccountableCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.