public final class DirectMonotonicReader extends LongValues implements Accountable
DirectMonotonicWriter.DirectMonotonicWriter| Modifier and Type | Class and Description |
|---|---|
static class |
DirectMonotonicReader.Meta
In-memory metadata that needs to be kept around for
DirectMonotonicReader to read data from disk. |
IDENTITY, ZEROESNULL_ACCOUNTABLE| Modifier and Type | Method and Description |
|---|---|
long |
binarySearch(long fromIndex,
long toIndex,
long key)
Return the index of a key if it exists, or its insertion point otherwise
like
Arrays.binarySearch(long[], int, int, long). |
long |
get(long index)
Get value at
index. |
static DirectMonotonicReader |
getInstance(DirectMonotonicReader.Meta meta,
RandomAccessInput data)
Retrieves an instance from the specified slice.
|
static DirectMonotonicReader.Meta |
loadMeta(IndexInput metaIn,
long numValues,
int blockShift)
Load metadata from the given
IndexInput. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcespublic static DirectMonotonicReader.Meta loadMeta(IndexInput metaIn, long numValues, int blockShift) throws IOException
IndexInput.IOExceptiongetInstance(Meta, RandomAccessInput)public static DirectMonotonicReader getInstance(DirectMonotonicReader.Meta meta, RandomAccessInput data) throws IOException
IOExceptionpublic long get(long index)
LongValuesindex.get in class LongValuespublic long binarySearch(long fromIndex,
long toIndex,
long key)
Arrays.binarySearch(long[], int, int, long).public long ramBytesUsed()
AccountableramBytesUsed in interface AccountableCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.