|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.FieldCache.DocTermsIndex
public abstract static class FieldCache.DocTermsIndex
Returned by FieldCache.getTermsIndex(org.apache.lucene.index.AtomicReader, java.lang.String)
Constructor Summary | |
---|---|
FieldCache.DocTermsIndex()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldCache.DocTermsIndex()
Method Detail |
---|
public int binarySearchLookup(BytesRef key, BytesRef spare)
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |