java.lang.Object
org.apache.lucene.index.TermsEnumIndex
- Direct Known Subclasses:
MultiTermsEnum.TermsEnumWithSlice
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classWrapper around a term that allows for quick equals comparisons. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BytesRefprivate long(package private) static final TermsEnumIndex[](package private) final int(package private) TermsEnum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intcompareTermTo(TermsEnumIndex that) (package private) BytesRefnext()(package private) static longCopy the first 8 bytes of the given term as a comparable unsigned long.(package private) voidreset(TermsEnumIndex tei) (package private) TermsEnum.SeekStatus(package private) voidseekExact(long ord) (package private) booleanprivate void(package private) BytesRefterm()(package private) booleantoString()
-
Field Details
-
EMPTY_ARRAY
-
subIndex
final int subIndex -
termsEnum
TermsEnum termsEnum -
currentTerm
-
currentTermPrefix8
private long currentTermPrefix8
-
-
Constructor Details
-
TermsEnumIndex
TermsEnumIndex(TermsEnum termsEnum, int subIndex)
-
-
Method Details
-
prefix8ToComparableUnsignedLong
Copy the first 8 bytes of the given term as a comparable unsigned long. In case the term has less than 8 bytes, missing bytes will be replaced with zeroes. Note that two terms that produce the same long could still be different due to the fact that missing bytes are replaced with zeroes, e.g.[1, 0]and[1]get mapped to the same long. -
term
BytesRef term() -
setTerm
-
next
- Throws:
IOException
-
seekCeil
- Throws:
IOException
-
seekExact
- Throws:
IOException
-
seekExact
- Throws:
IOException
-
reset
- Throws:
IOException
-
compareTermTo
-
toString
-
termEquals
-