Class Token
java.lang.Object
org.opensearch.client.opensearch.core.termvectors.Token
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Token.Builder,Token>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Token
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Token.Builder,Token>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Token> Json deserializer forToken -
Method Summary
Modifier and TypeMethodDescriptionstatic Token.Builderbuilder()final IntegerAPI name:end_offsetbooleaninthashCode()static Tokenfinal Stringpayload()API name:payloadfinal intposition()Required - API name:positionvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal IntegerAPI name:start_offsetCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.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 forToken
-
-
Method Details
-
of
-
endOffset
API name:end_offset -
payload
API name:payload -
position
public final int position()Required - API name:position -
startOffset
API name:start_offset -
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<Token.Builder,Token> - Returns:
- a new builder instance.
-
builder
-
setupTokenDeserializer
-
hashCode
public int hashCode() -
equals
-