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) shortendOffsetInc(package private) TokenStreamFromTermVector.TokenLLnext(package private) intpayloadIndex(package private) intpositionIncrement(package private) intstartOffset(package private) shorttermCharsLen(package private) inttermCharsOff
-
Constructor Summary
Constructors Modifier Constructor Description privateTokenLL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intcompareOffsets(TokenStreamFromTermVector.TokenLL tokenB)by startOffset then endOffset(package private) TokenStreamFromTermVector.TokenLLinsertIntoSortedLinkedList(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
-
-