Java org.apache.lucene.analysis Token fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.analysis Token fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.analysis Token.

The text is from its open source code.

Subclass

org.apache.lucene.analysis.Token has subclasses.
Click this link to see all its subclasses.

Constructor

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)

Method

char[]buffer()
voidclear()
Resets the term text, payload, flags, positionIncrement, positionLength, startOffset, endOffset and token type to default.
Tokenclone()
voidcopyBuffer(char[] buffer, int offset, int length)
intendOffset()
intgetFlags()
BytesRefgetPayload()
intgetPositionIncrement()
intgetPositionLength()
intlength()
voidreinit(Token prototype)
Copy the prototype token's fields into this one.
CharTermAttributesetEmpty()
voidsetFlags(int flags)
voidsetOffset(int startOffset, int endOffset)
voidsetPayload(BytesRef payload)
voidsetPositionIncrement(int positionIncrement)
voidsetPositionLength(int positionLength)
voidsetType(String type)
intstartOffset()
StringtoString()
Returns solely the term text as specified by the CharSequence interface.
Stringtype()