public final class IndexHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexHelper.IndexInfo |
Modifier and Type | Method and Description |
---|---|
static int |
indexFor(ClusteringPrefix name,
java.util.List<IndexHelper.IndexInfo> indexList,
ClusteringComparator comparator,
boolean reversed,
int lastIndex)
The index of the IndexInfo in which a scan starting with @name should begin.
|
public static int indexFor(ClusteringPrefix name, java.util.List<IndexHelper.IndexInfo> indexList, ClusteringComparator comparator, boolean reversed, int lastIndex)
name
- name to search forindexList
- list of the indexInfo objectscomparator
- the comparator to usereversed
- whether or not the search is reversed, i.e. we scan forward or backward from namelastIndex
- where to start the search from in indexListCopyright © 2021 The Apache Software Foundation