Class Collector.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.search.Collector.Builder
- All Implemented Interfaces:
CopyableBuilder<Collector.Builder,,Collector> MutableBuilder<Collector.Builder,,Collector> ObjectBuilder<Collector>
- Enclosing class:
Collector
public static class Collector.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Collector.Builder,Collector>
Builder for
Collector.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCollector.final Collector.BuilderAPI name:childrenfinal Collector.BuilderAPI name:childrenfinal Collector.BuilderAPI name:childrencopy()Create a new builderCopyableBuilderthat is a copy of this one.final Collector.BuilderRequired - API name:namefinal Collector.BuilderRequired - API name:reasonfinal Collector.BuildertimeInNanos(long value) Required - API name:time_in_nanosMethods 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<Collector.Builder,Collector> - Returns:
- a new builder instance.
-
children
API name:childrenAdds all elements of
listtochildren. -
children
API name:childrenAdds one or more values to
children. -
children
@Nonnull public final Collector.Builder children(Function<Collector.Builder, ObjectBuilder<Collector>> fn) API name:childrenAdds a value to
childrenusing a builder lambda. -
name
Required - API name:name -
reason
Required - API name:reason -
timeInNanos
Required - API name:time_in_nanos -
build
Builds aCollector.- Specified by:
buildin interfaceObjectBuilder<Collector>- Throws:
NullPointerException- if some of the required fields are null.
-