Class TokenDetail
java.lang.Object
org.opensearch.client.opensearch.indices.analyze.TokenDetail
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<TokenDetail.Builder,TokenDetail>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TokenDetail
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<TokenDetail.Builder,TokenDetail>
The token filter or tokenizer results.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TokenDetail> Json deserializer forTokenDetail -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenDetail.Builderbuilder()booleaninthashCode()final Stringname()Required - The name of the token filter or tokenizer.static TokenDetailvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final List<ExplainAnalyzeToken> tokens()Required - The list of tokens produced.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 forTokenDetail
-
-
Method Details
-
of
-
name
Required - The name of the token filter or tokenizer.API name:
name -
tokens
Required - The list of tokens produced.API name:
tokens -
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<TokenDetail.Builder,TokenDetail> - Returns:
- a new builder instance.
-
builder
-
setupTokenDetailDeserializer
-
hashCode
public int hashCode() -
equals
-