Class ExplainAnalyzeToken
java.lang.Object
org.opensearch.client.opensearch.indices.analyze.ExplainAnalyzeToken
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ExplainAnalyzeToken.Builder,ExplainAnalyzeToken>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ExplainAnalyzeToken
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ExplainAnalyzeToken.Builder,ExplainAnalyzeToken>
The detailed token information.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ExplainAnalyzeToken> Json deserializer forExplainAnalyzeToken -
Method Summary
Modifier and TypeMethodDescriptionstatic ExplainAnalyzeToken.Builderbuilder()final Stringbytes()Required - The bytes representation of the token.final intRequired - The ending character offset of the token.booleaninthashCode()final Booleankeyword()Whether the token is a keyword.static ExplainAnalyzeTokenfinal intposition()Required - The position of the token.final intRequired - The 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.final intRequired - The frequency of the term.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 forExplainAnalyzeToken
-
-
Method Details
-
of
public static ExplainAnalyzeToken of(Function<ExplainAnalyzeToken.Builder, ObjectBuilder<ExplainAnalyzeToken>> fn) -
bytes
Required - The bytes representation of the token.API name:
bytes -
endOffset
public final int endOffset()Required - The ending character offset of the token.API name:
end_offset -
keyword
Whether the token is a keyword.API name:
keyword -
position
public final int position()Required - The position of the token.API name:
position -
positionLength
public final int positionLength()Required - 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 -
termFrequency
public final int termFrequency()Required - The frequency of the term.API name:
termFrequency -
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<ExplainAnalyzeToken.Builder,ExplainAnalyzeToken> - Returns:
- a new builder instance.
-
builder
-
setupExplainAnalyzeTokenDeserializer
protected static void setupExplainAnalyzeTokenDeserializer(ObjectDeserializer<ExplainAnalyzeToken.Builder> op) -
hashCode
public int hashCode() -
equals
-