Class FieldSort.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.FieldSort.Builder
- All Implemented Interfaces:
ObjectBuilder<FieldSort>
- Enclosing class:
FieldSort
Builder for
FieldSort.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFieldSort.final FieldSort.BuilderRequired - The target fieldfinal FieldSort.BuilderAPI name:formatfinal FieldSort.BuilderAPI name:missingfinal FieldSort.Buildermissing(FieldValue value) API name:missingfinal FieldSort.BuilderAPI name:modefinal FieldSort.BuilderAPI name:nestedfinal FieldSort.Buildernested(NestedSortValue value) API name:nestedfinal FieldSort.BuildernumericType(FieldSortNumericType value) API name:numeric_typefinal FieldSort.BuilderAPI name:orderfinal FieldSort.BuilderunmappedType(FieldType value) API name:unmapped_typeMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
Required - The target field -
missing
API name:missing -
missing
API name:missing -
mode
API name:mode -
nested
API name:nested -
nested
public final FieldSort.Builder nested(Function<NestedSortValue.Builder, ObjectBuilder<NestedSortValue>> fn) API name:nested -
order
API name:order -
unmappedType
API name:unmapped_type -
numericType
API name:numeric_type -
format
API name:format -
build
Builds aFieldSort.- Specified by:
buildin interfaceObjectBuilder<FieldSort>- Throws:
NullPointerException- if some of the required fields are null.
-