Class Collector.Builder
java.lang.Object
org.opensearch.client.opensearch._global.search.Collector.Builder
- All Implemented Interfaces:
ObjectBuilder<Collector>
- Enclosing class:
- Collector
public static class Collector.Builder extends java.lang.Object implements ObjectBuilder<Collector>
Builder for
Collector.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Collector.BuilderaddChildren(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)Add a value tochildren(List), creating the list if needed.Collector.BuilderaddChildren(Collector value)Add a value tochildren(List), creating the list if needed.Collectorbuild()Builds aCollector.Collector.Builderchildren(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)Setchildren(List)to a singleton list.Collector.Builderchildren(java.util.List<Collector> value)API name:childrenCollector.Builderchildren(Collector... value)API name:childrenCollector.Buildername(java.lang.String value)API name:nameCollector.Builderreason(java.lang.String value)API name:reasonCollector.BuildertimeInNanos(java.lang.Number value)API name:time_in_nanos
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
API name:name -
reason
API name:reason -
timeInNanos
API name:time_in_nanos -
children
API name:children -
children
API name:children -
addChildren
Add a value tochildren(List), creating the list if needed. -
children
public Collector.Builder children(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)Setchildren(List)to a singleton list. -
addChildren
public Collector.Builder addChildren(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)Add a value tochildren(List), creating the list if needed. -
build
Builds aCollector.- Specified by:
buildin interfaceObjectBuilder<Collector>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-