public class IndexHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexHelper.IndexInfo |
| Constructor and Description |
|---|
IndexHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<IndexHelper.IndexInfo> |
deserializeIndex(FileDataInput in)
Deserialize the index into a structure and return it
|
static java.util.Comparator<IndexHelper.IndexInfo> |
getComparator(AbstractType<?> nameComparator,
boolean reversed) |
static int |
indexFor(java.nio.ByteBuffer name,
java.util.List<IndexHelper.IndexInfo> indexList,
AbstractType<?> comparator,
boolean reversed,
int lastIndex)
The index of the IndexInfo in which a scan starting with @name should begin.
|
static void |
skipBloomFilter(java.io.DataInput in) |
static void |
skipIndex(java.io.DataInput in)
Skip the index
|
public static void skipBloomFilter(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic static void skipIndex(java.io.DataInput in)
throws java.io.IOException
in - the data input from which the index should be skippedjava.io.IOException - if an I/O error occurs.public static java.util.List<IndexHelper.IndexInfo> deserializeIndex(FileDataInput in) throws java.io.IOException
in - - input sourcejava.io.IOException - if an I/O error occurs.public static int indexFor(java.nio.ByteBuffer name,
java.util.List<IndexHelper.IndexInfo> indexList,
AbstractType<?> comparator,
boolean reversed,
int lastIndex)
name - name of the indexindexList - list of the indexInfo objectscomparator - comparator typereversed - is name reversedpublic static java.util.Comparator<IndexHelper.IndexInfo> getComparator(AbstractType<?> nameComparator, boolean reversed)
Copyright © 2015 The Apache Software Foundation