Class TokenStreamFromTermVector.TokenLL
java.lang.Object
org.apache.lucene.search.highlight.TokenStreamFromTermVector.TokenLL
- Enclosing class:
- TokenStreamFromTermVector
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) short
(package private) TokenStreamFromTermVector.TokenLL
(package private) int
(package private) int
(package private) int
(package private) short
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
by startOffset then endOffset(package private) TokenStreamFromTermVector.TokenLL
Given the head of a linked-list (possibly null) this inserts the token at the correct spot to maintain the desired order, and returns the head (which could be this token if it's the smallest).
-
Field Details
-
termCharsOff
int termCharsOff -
termCharsLen
short termCharsLen -
positionIncrement
int positionIncrement -
startOffset
int startOffset -
endOffsetInc
short endOffsetInc -
payloadIndex
int payloadIndex -
next
-
-
Constructor Details
-
TokenLL
private TokenLL()
-
-
Method Details
-
insertIntoSortedLinkedList
TokenStreamFromTermVector.TokenLL insertIntoSortedLinkedList(TokenStreamFromTermVector.TokenLL head) Given the head of a linked-list (possibly null) this inserts the token at the correct spot to maintain the desired order, and returns the head (which could be this token if it's the smallest). O(N^2) complexity but N should be a handful at most. -
compareOffsets
by startOffset then endOffset
-