Class TokenStreamFromTermVector.TokenLL
- java.lang.Object
-
- org.apache.lucene.search.highlight.TokenStreamFromTermVector.TokenLL
-
- Enclosing class:
- TokenStreamFromTermVector
private static class TokenStreamFromTermVector.TokenLL extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) short
endOffsetInc
(package private) TokenStreamFromTermVector.TokenLL
next
(package private) int
payloadIndex
(package private) int
positionIncrement
(package private) int
startOffset
(package private) short
termCharsLen
(package private) int
termCharsOff
-
Constructor Summary
Constructors Modifier Constructor Description private
TokenLL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
compareOffsets(TokenStreamFromTermVector.TokenLL tokenB)
by startOffset then endOffset(package private) 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).
-
-
-
Field Detail
-
termCharsOff
int termCharsOff
-
termCharsLen
short termCharsLen
-
positionIncrement
int positionIncrement
-
startOffset
int startOffset
-
endOffsetInc
short endOffsetInc
-
payloadIndex
int payloadIndex
-
next
TokenStreamFromTermVector.TokenLL next
-
-
Method Detail
-
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
int compareOffsets(TokenStreamFromTermVector.TokenLL tokenB)
by startOffset then endOffset
-
-