java.lang.Object
org.apache.lucene.index.TermsEnumIndex
- Direct Known Subclasses:
MultiTermsEnum.TermsEnumWithSlice
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Wrapper around a term that allows for quick equals comparisons. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BytesRef
private long
(package private) static final TermsEnumIndex[]
(package private) final int
(package private) TermsEnum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
compareTermTo
(TermsEnumIndex that) (package private) BytesRef
next()
(package private) static long
Copy the first 8 bytes of the given term as a comparable unsigned long.(package private) void
reset
(TermsEnumIndex tei) (package private) TermsEnum.SeekStatus
(package private) void
seekExact
(long ord) (package private) boolean
private void
(package private) BytesRef
term()
(package private) boolean
toString()
-
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
-