Class ScriptSort
java.lang.Object
org.opensearch.client.opensearch._types.ScriptSort
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,SortOptionsVariant,ToCopyableBuilder<ScriptSort.Builder,ScriptSort>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ScriptSort
extends Object
implements SortOptionsVariant, PlainJsonSerializable, ToCopyableBuilder<ScriptSort.Builder,ScriptSort>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ScriptSort> Json deserializer forScriptSort -
Method Summary
Modifier and TypeMethodDescriptionSortOptionsvariant kind.static ScriptSort.Builderbuilder()booleaninthashCode()final SortModemode()The mode for sorting on array or multi-valued fields.final NestedSortValuenested()The nested path and filter for nested sorting.static ScriptSortfinal SortOrderorder()API name:orderfinal Scriptscript()Required - The script to use for sorting.voidserialize(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 ScriptSortTypetype()The type of the script sort value.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.opensearch._types.SortOptionsVariant
_toSortOptionsMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forScriptSort
-
-
Method Details
-
of
-
_sortOptionsKind
SortOptionsvariant kind.- Specified by:
_sortOptionsKindin interfaceSortOptionsVariant
-
mode
The mode for sorting on array or multi-valued fields.API name:
mode -
nested
The nested path and filter for nested sorting.API name:
nested -
order
API name:order -
script
Required - The script to use for sorting.API name:
script -
type
The type of the script sort value.API name:
type -
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<ScriptSort.Builder,ScriptSort> - Returns:
- a new builder instance.
-
builder
-
setupScriptSortDeserializer
-
hashCode
public int hashCode() -
equals
-