Package org.apache.lucene.search
Class FieldCache.StringIndex
- java.lang.Object
-
- org.apache.lucene.search.FieldCache.StringIndex
-
- Enclosing interface:
- FieldCache
public static class FieldCache.StringIndex extends Object
Expert: Stores term text values and document ordering data.
-
-
Constructor Summary
Constructors Constructor Description StringIndex(int[] values, String[] lookup)
Creates one of these objects
-
-
-
Field Detail
-
lookup
public final String[] lookup
All the term values, in natural order.
-
order
public final int[] order
For each document, an index into the lookup array.
-
-
Constructor Detail
-
StringIndex
public StringIndex(int[] values, String[] lookup)
Creates one of these objects
-
-
Method Detail
-
binarySearchLookup
public int binarySearchLookup(String key)
-
-