Class SortOptions
java.lang.Object
co.elastic.clients.elasticsearch._types.SortOptions
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<SortOptions.Kind,Object>
@JsonpDeserializable
public class SortOptions
extends Object
implements TaggedUnion<SortOptions.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final SortOptions.Kind_kind()Get the of the kind of variant held by this object.doc()Get the_docvariant value.field()Get thefieldvariant value.Get the_geo_distancevariant value.booleanisDoc()Is this variant instance of kind_doc?booleanisField()Is this variant instance of kindfield?booleanIs this variant instance of kind_geo_distance?booleanisScore()Is this variant instance of kind_score?booleanisScript()Is this variant instance of kind_script?static SortOptionsscore()Get the_scorevariant value.script()Get the_scriptvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
SortOptions
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<SortOptions.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<SortOptions.Kind,Object>
-
of
-
isScore
public boolean isScore()Is this variant instance of kind_score? -
score
Get the_scorevariant value.- Throws:
IllegalStateException- if the current variant is not of the_scorekind.
-
isDoc
public boolean isDoc()Is this variant instance of kind_doc? -
doc
Get the_docvariant value.- Throws:
IllegalStateException- if the current variant is not of the_dockind.
-
isGeoDistance
public boolean isGeoDistance()Is this variant instance of kind_geo_distance? -
geoDistance
Get the_geo_distancevariant value.- Throws:
IllegalStateException- if the current variant is not of the_geo_distancekind.
-
isScript
public boolean isScript()Is this variant instance of kind_script? -
script
Get the_scriptvariant value.- Throws:
IllegalStateException- if the current variant is not of the_scriptkind.
-
isField
public boolean isField()Is this variant instance of kindfield? -
field
Get thefieldvariant value.- Throws:
IllegalStateException- if the current variant is not of thefieldkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-