Package org.apache.lucene.analysis.payloads
Provides various convenience classes for creating payloads on Tokens.
Copyright © 2007 Apache Software Foundation
-
Interface Summary Interface Description PayloadEncoder Mainly for use with the DelimitedPayloadTokenFilter, converts char buffers to Payload. -
Class Summary Class Description AbstractEncoder Base class for payload encoders.DelimitedPayloadTokenFilter Characters before the delimiter are the "token", those after are the payload.FloatEncoder Encode a character array Float as aPayload
.IdentityEncoder Does nothing other than convert the char array to a byte array using the specified encoding.IntegerEncoder Encode a character array Integer as aPayload
.NumericPayloadTokenFilter Assigns a payload to a token based on theToken.type()
PayloadHelper Utility methods for encoding payloads.TokenOffsetPayloadTokenFilter Adds theToken.setStartOffset(int)
andToken.setEndOffset(int)
First 4 bytes are the startTypeAsPayloadTokenFilter Makes theToken.type()
a payload.