Class NestedSortValue.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.NestedSortValue.Builder
- All Implemented Interfaces:
CopyableBuilder<NestedSortValue.Builder,,NestedSortValue> MutableBuilder<NestedSortValue.Builder,,NestedSortValue> ObjectBuilder<NestedSortValue>
- Enclosing class:
NestedSortValue
public static class NestedSortValue.Builder
extends ObjectBuilderBase
implements CopyableBuilder<NestedSortValue.Builder,NestedSortValue>
Builder for
NestedSortValue.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aNestedSortValue.copy()Create a new builderCopyableBuilderthat is a copy of this one.final NestedSortValue.BuilderThe filter to apply to nested objects.final NestedSortValue.BuilderThe filter to apply to nested objects.final NestedSortValue.BuildermaxChildren(Integer value) The maximum number of children to consider for sorting.final NestedSortValue.BuilderHow to sort hierarchical nested objects.final NestedSortValue.Buildernested(NestedSortValue value) How to sort hierarchical nested objects.final NestedSortValue.BuilderRequired - The path to the nested objects.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<NestedSortValue.Builder,NestedSortValue> - Returns:
- a new builder instance.
-
filter
The filter to apply to nested objects.API name:
filter -
filter
@Nonnull public final NestedSortValue.Builder filter(Function<Query.Builder, ObjectBuilder<Query>> fn) The filter to apply to nested objects.API name:
filter -
maxChildren
The maximum number of children to consider for sorting.API name:
max_children -
nested
How to sort hierarchical nested objects.API name:
nested -
nested
@Nonnull public final NestedSortValue.Builder nested(Function<NestedSortValue.Builder, ObjectBuilder<NestedSortValue>> fn) How to sort hierarchical nested objects.API name:
nested -
path
Required - The path to the nested objects.API name:
path -
build
Builds aNestedSortValue.- Specified by:
buildin interfaceObjectBuilder<NestedSortValue>- Throws:
NullPointerException- if some of the required fields are null.
-