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, wait
getChildResources
public long get(int index)
PackedInts.Reader
get
in class PackedInts.Reader
public int get(int index, long[] arr, int off, int len)
PackedInts.Reader
len
longs starting
from index
into arr[off:off+len]
and return
the actual number of values that have been read.get
in class PackedInts.Reader
public int size()
size
in class PackedInts.Reader
public long ramBytesUsed()
Accountable
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.