Class Collector.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.search.Collector.Builder
- All Implemented Interfaces:
ObjectBuilder<Collector>
- Enclosing class:
- Collector
public static class Collector.Builder extends ObjectBuilderBase implements ObjectBuilder<Collector>
Builder for
Collector
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Collector
build()
Builds aCollector
.Collector.Builder
children(Collector value, Collector... values)
API name:children
Collector.Builder
children(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)
API name:children
Collector.Builder
children(java.util.List<Collector> list)
API name:children
Collector.Builder
name(java.lang.String value)
Required - API name:name
Collector.Builder
reason(java.lang.String value)
Required - API name:reason
Collector.Builder
timeInNanos(long value)
Required - API name:time_in_nanos
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
-
name
Required - API name:name
-
reason
Required - API name:reason
-
timeInNanos
Required - API name:time_in_nanos
-
children
API name:children
Adds all elements of
list
tochildren
. -
children
API name:children
Adds one or more values to
children
. -
children
public final Collector.Builder children(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)API name:children
Adds a value to
children
using a builder lambda. -
build
Builds aCollector
.- Specified by:
build
in interfaceObjectBuilder<Collector>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-