Class Collector.Builder
java.lang.Object
co.elastic.clients.elasticsearch.core.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.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Collector.BuilderaddChildren(Collector value)Add a value tochildren(List), creating the list if needed.Collector.BuilderaddChildren(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)Add a value tochildren(List), creating the list if needed.Collectorbuild()Builds aCollector.Collector.Builderchildren(Collector... value)API name:childrenCollector.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.Buildername(java.lang.String value)Required - API name:nameCollector.Builderreason(java.lang.String value)Required - API name:reasonCollector.BuildertimeInNanos(long value)Required - API name:time_in_nanosMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Required - API name:name -
reason
Required - API name:reason -
timeInNanos
Required - 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.
-