public class TagLL extends Object
A Tag starts without a value in an
"advancing" state. advance(org.apache.lucene.util.BytesRef, int)
is called with subsequent words and then eventually it won't advance any
more, and value is set (could be null).
A Tag is also a doubly-linked-list (hence the LL in the name). All tags share a reference to the head via a 1-element array, which is potentially modified if any of the linked-list methods are called. Tags in the list should have equal or increasing start offsets.
Modifier and Type | Method and Description |
---|---|
int |
charLen() |
int |
getEndOffset() |
TagLL |
getNextTag() |
TagLL |
getPrevTag() |
int |
getStartOffset() |
boolean |
overlaps(TagLL other) |
void |
removeLL()
Removes this tag from the chain, connecting prevTag and nextTag.
|
String |
toString() |
public void removeLL()
public int charLen()
public TagLL getNextTag()
public TagLL getPrevTag()
public int getStartOffset()
public int getEndOffset()
public boolean overlaps(TagLL other)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.