public abstract static class FieldCache.DocTermsIndex extends Object
Constructor and Description |
---|
FieldCache.DocTermsIndex() |
Modifier and Type | Method and Description |
---|---|
int |
binarySearchLookup(BytesRef key,
BytesRef spare) |
abstract PackedInts.Reader |
getDocToOrd() |
abstract int |
getOrd(int docID)
Returns sort ord for this document.
|
BytesRef |
getTerm(int docID,
BytesRef reuse)
Convenience method, to lookup the Term for a doc.
|
abstract TermsEnum |
getTermsEnum()
Returns a TermsEnum that can iterate over the values in this index entry
|
abstract BytesRef |
lookup(int ord,
BytesRef reuse)
The BytesRef argument must not be null; the method
returns the same BytesRef, or an empty (length=0)
BytesRef if this ord is the null ord (0).
|
abstract int |
numOrd()
Returns total unique ord count; this includes +1 for
the null ord (always 0).
|
abstract int |
size()
Number of documents
|
public abstract BytesRef lookup(int ord, BytesRef reuse)
public BytesRef getTerm(int docID, BytesRef reuse)
public abstract int getOrd(int docID)
public abstract int numOrd()
public abstract int size()
public abstract TermsEnum getTermsEnum()
public abstract PackedInts.Reader getDocToOrd()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.