Class ScoreSort
- java.lang.Object
-
- org.opensearch.client.opensearch._types.ScoreSort
-
- All Implemented Interfaces:
JsonpSerializable
,SortOptionsVariant
@JsonpDeserializable public class ScoreSort extends java.lang.Object implements SortOptionsVariant, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScoreSort.Builder
Builder forScoreSort
.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ScoreSort>
_DESERIALIZER
Json deserializer forScoreSort
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SortOptions.Kind
_sortOptionsKind()
SortOptions variant kind.static ScoreSort
of(java.util.function.Function<ScoreSort.Builder,ObjectBuilder<ScoreSort>> fn)
SortOrder
order()
API name:order
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupScoreSortDeserializer(ObjectDeserializer<ScoreSort.Builder> op)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.opensearch._types.SortOptionsVariant
_toSortOptions
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ScoreSort> _DESERIALIZER
Json deserializer forScoreSort
-
-
Method Detail
-
of
public static ScoreSort of(java.util.function.Function<ScoreSort.Builder,ObjectBuilder<ScoreSort>> fn)
-
_sortOptionsKind
public SortOptions.Kind _sortOptionsKind()
SortOptions variant kind.- Specified by:
_sortOptionsKind
in interfaceSortOptionsVariant
-
order
@Nullable public final SortOrder order()
API name:order
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupScoreSortDeserializer
protected static void setupScoreSortDeserializer(ObjectDeserializer<ScoreSort.Builder> op)
-
-