Class ScriptSort
java.lang.Object
co.elastic.clients.elasticsearch._types.ScriptSort
- All Implemented Interfaces:
SortOptionsVariant
,JsonpSerializable
@JsonpDeserializable public class ScriptSort extends java.lang.Object implements SortOptionsVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScriptSort.Builder
Builder forScriptSort
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ScriptSort>
_DESERIALIZER
Json deserializer forScriptSort
-
Method Summary
Modifier and Type Method Description SortOptions.Kind
_sortOptionsKind()
SortOptions variant kind.SortMode
mode()
API name:mode
NestedSortValue
nested()
API name:nested
static ScriptSort
of(java.util.function.Function<ScriptSort.Builder,ObjectBuilder<ScriptSort>> fn)
SortOrder
order()
API name:order
Script
script()
Required - API name:script
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
setupScriptSortDeserializer(ObjectDeserializer<ScriptSort.Builder> op)
java.lang.String
toString()
ScriptSortType
type()
API name:type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch._types.SortOptionsVariant
_toSortOptions
-
Field Details
-
_DESERIALIZER
Json deserializer forScriptSort
-
-
Method Details
-
of
public static ScriptSort of(java.util.function.Function<ScriptSort.Builder,ObjectBuilder<ScriptSort>> fn) -
_sortOptionsKind
SortOptions variant kind.- Specified by:
_sortOptionsKind
in interfaceSortOptionsVariant
-
order
API name:order
-
script
Required - API name:script
-
type
API name:type
-
mode
API name:mode
-
nested
API name:nested
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupScriptSortDeserializer
-