Example usage for Java org.apache.lucene.analysis Token fields, constructors, methods, implement or subclass
The text is from its open source code.
Token() Constructs a Token will null text. | |
Token(CharSequence text, int start, int end) Constructs a Token with the given term text, start and end offsets. | |
Token(CharSequence text, int posInc, int start, int end) Constructs a Token with the given term text, position increment, start and end offsets | |
Token(CharSequence text, int posInc, int start, int end, int posLength) |
char[] | buffer() |
void | clear() Resets the term text, payload, flags, positionIncrement, positionLength, startOffset, endOffset and token type to default. |
Token | clone() |
void | copyBuffer(char[] buffer, int offset, int length) |
int | endOffset() |
int | getFlags() |
BytesRef | getPayload() |
int | getPositionIncrement() |
int | getPositionLength() |
int | length() |
void | reinit(Token prototype) Copy the prototype token's fields into this one. |
CharTermAttribute | setEmpty() |
void | setFlags(int flags) |
void | setOffset(int startOffset, int endOffset) |
void | setPayload(BytesRef payload) |
void | setPositionIncrement(int positionIncrement) |
void | setPositionLength(int positionLength) |
void | setType(String type) |
int | startOffset() |
String | toString() Returns solely the term text as specified by the CharSequence interface. |
String | type() |