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, ZEROES
NULL_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, wait
getChildResources
public static DirectMonotonicReader.Meta loadMeta(IndexInput metaIn, long numValues, int blockShift) throws IOException
IndexInput
.IOException
getInstance(Meta, RandomAccessInput)
public static DirectMonotonicReader getInstance(DirectMonotonicReader.Meta meta, RandomAccessInput data) throws IOException
IOException
public long get(long index)
LongValues
index
.get
in class LongValues
public long binarySearch(long fromIndex, long toIndex, long key)
Arrays.binarySearch(long[], int, int, long)
.public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.