Class ScriptSort
- java.lang.Object
-
- org.opensearch.client.opensearch._types.ScriptSort
-
- All Implemented Interfaces:
JsonpSerializable,SortOptionsVariant
@JsonpDeserializable public class ScriptSort extends java.lang.Object implements SortOptionsVariant, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScriptSort.BuilderBuilder forScriptSort.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ScriptSort>_DESERIALIZERJson deserializer forScriptSort
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SortOptions.Kind_sortOptionsKind()SortOptions variant kind.SortModemode()API name:modeNestedSortValuenested()API name:nestedstatic ScriptSortof(java.util.function.Function<ScriptSort.Builder,ObjectBuilder<ScriptSort>> fn)SortOrderorder()API name:orderScriptscript()Required - API name:scriptvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupScriptSortDeserializer(ObjectDeserializer<ScriptSort.Builder> op)ScriptSortTypetype()API name:type-
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<ScriptSort> _DESERIALIZER
Json deserializer forScriptSort
-
-
Method Detail
-
of
public static ScriptSort of(java.util.function.Function<ScriptSort.Builder,ObjectBuilder<ScriptSort>> fn)
-
_sortOptionsKind
public SortOptions.Kind _sortOptionsKind()
SortOptions variant kind.- Specified by:
_sortOptionsKindin interfaceSortOptionsVariant
-
order
@Nullable public final SortOrder order()
API name:order
-
script
public final Script script()
Required - API name:script
-
type
@Nullable public final ScriptSortType type()
API name:type
-
mode
@Nullable public final SortMode mode()
API name:mode
-
nested
@Nullable public final NestedSortValue nested()
API name:nested
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupScriptSortDeserializer
protected static void setupScriptSortDeserializer(ObjectDeserializer<ScriptSort.Builder> op)
-
-