Class FieldSort.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.FieldSort.Builder
- All Implemented Interfaces:
ObjectBuilder<FieldSort>
- Enclosing class:
- FieldSort
public static class FieldSort.Builder extends ObjectBuilderBase implements ObjectBuilder<FieldSort>
Builder for
FieldSort
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description FieldSort
build()
Builds aFieldSort
.FieldSort.Builder
field(java.lang.String value)
Required - The target fieldFieldSort.Builder
format(java.lang.String value)
API name:format
FieldSort.Builder
missing(FieldValue value)
API name:missing
FieldSort.Builder
missing(java.util.function.Function<FieldValue.Builder,ObjectBuilder<FieldValue>> fn)
API name:missing
FieldSort.Builder
mode(SortMode value)
API name:mode
FieldSort.Builder
nested(NestedSortValue value)
API name:nested
FieldSort.Builder
nested(java.util.function.Function<NestedSortValue.Builder,ObjectBuilder<NestedSortValue>> fn)
API name:nested
FieldSort.Builder
numericType(FieldSortNumericType value)
API name:numeric_type
FieldSort.Builder
order(SortOrder value)
API name:order
FieldSort.Builder
unmappedType(FieldType value)
API name:unmapped_type
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
Required - The target field -
missing
API name:missing
-
missing
public final FieldSort.Builder missing(java.util.function.Function<FieldValue.Builder,ObjectBuilder<FieldValue>> fn)API name:missing
-
mode
API name:mode
-
nested
API name:nested
-
nested
public final FieldSort.Builder nested(java.util.function.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:
build
in interfaceObjectBuilder<FieldSort>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-