public class IndexSummary
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Class and Description |
---|---|
static class |
IndexSummary.IndexSummarySerializer |
Modifier and Type | Field and Description |
---|---|
static IndexSummary.IndexSummarySerializer |
serializer |
Constructor and Description |
---|
IndexSummary(IPartitioner partitioner,
Memory memory,
int summary_size,
int indexInterval) |
Modifier and Type | Method and Description |
---|---|
int |
binarySearch(RowPosition key) |
void |
close() |
int |
getIndex(int index) |
int |
getIndexInterval() |
byte[] |
getKey(int index) |
long |
getPosition(int index) |
long |
offHeapSize()
Returns the amount of memory in bytes used off heap.
|
int |
size() |
public static final IndexSummary.IndexSummarySerializer serializer
public IndexSummary(IPartitioner partitioner, Memory memory, int summary_size, int indexInterval)
public int binarySearch(RowPosition key)
public int getIndex(int index)
public byte[] getKey(int index)
public long getPosition(int index)
public int getIndexInterval()
public int size()
public long offHeapSize()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2015 The Apache Software Foundation