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.Comparator<IndexHelper.IndexInfo> |
getComparator(CType nameComparator,
boolean reversed) |
static int |
indexFor(Composite name,
java.util.List<IndexHelper.IndexInfo> indexList,
CType 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 int indexFor(Composite name, java.util.List<IndexHelper.IndexInfo> indexList, CType 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(CType nameComparator, boolean reversed)
Copyright © 2018 The Apache Software Foundation