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.Builder
addChildren(Collector value)
Add a value tochildren(List)
, creating the list if needed.Collector.Builder
addChildren(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)
Add a value tochildren(List)
, creating the list if needed.Collector
build()
Builds aCollector
.Collector.Builder
children(Collector... value)
API name:children
Collector.Builder
children(java.util.function.Function<Collector.Builder,ObjectBuilder<Collector>> fn)
Setchildren(List)
to a singleton list.Collector.Builder
children(java.util.List<Collector> value)
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 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:
build
in interfaceObjectBuilder<Collector>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-