Class AnalyzeToken
java.lang.Object
org.opensearch.client.opensearch.indices.analyze.AnalyzeToken
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<AnalyzeToken.Builder,AnalyzeToken>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class AnalyzeToken
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<AnalyzeToken.Builder,AnalyzeToken>
The basic token information.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AnalyzeToken> Json deserializer forAnalyzeToken -
Method Summary
Modifier and TypeMethodDescriptionstatic AnalyzeToken.Builderbuilder()final intRequired - The ending character offset of the token.booleaninthashCode()static AnalyzeTokenfinal intposition()Required - The position of the token.final IntegerThe length of the token position.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal intRequired - The starting character offset of the token.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringtoken()Required - The token string.final Stringtype()Required - The type of the token.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forAnalyzeToken
-
-
Method Details
-
of
-
endOffset
public final int endOffset()Required - The ending character offset of the token.API name:
end_offset -
position
public final int position()Required - The position of the token.API name:
position -
positionLength
The length of the token position.API name:
positionLength -
startOffset
public final int startOffset()Required - The starting character offset of the token.API name:
start_offset -
token
Required - The token string.API name:
token -
type
Required - The type of the token.API name:
type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AnalyzeToken.Builder,AnalyzeToken> - Returns:
- a new builder instance.
-
builder
-
setupAnalyzeTokenDeserializer
-
hashCode
public int hashCode() -
equals
-