Class Pivot.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.transform.Pivot.Builder
- All Implemented Interfaces:
ObjectBuilder<Pivot>
- Enclosing class:
- Pivot
public static class Pivot.Builder extends ObjectBuilderBase implements ObjectBuilder<Pivot>
Builder for
Pivot
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Pivot.Builder
aggregations(java.lang.String key, Aggregation value)
API name:aggregations
Pivot.Builder
aggregations(java.lang.String key, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)
API name:aggregations
Pivot.Builder
aggregations(java.util.Map<java.lang.String,Aggregation> map)
API name:aggregations
Pivot
build()
Builds aPivot
.Pivot.Builder
groupBy(java.lang.String key, PivotGroupBy value)
API name:group_by
Pivot.Builder
groupBy(java.lang.String key, java.util.function.Function<PivotGroupBy.Builder,ObjectBuilder<PivotGroupBy>> fn)
API name:group_by
Pivot.Builder
groupBy(java.util.Map<java.lang.String,PivotGroupBy> map)
API name:group_by
Pivot.Builder
maxPageSearchSize(java.lang.Integer value)
API name:max_page_search_size
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
-
aggregations
API name:aggregations
Adds all entries of
map
toaggregations
. -
aggregations
API name:aggregations
Adds an entry to
aggregations
. -
aggregations
public final Pivot.Builder aggregations(java.lang.String key, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)API name:aggregations
Adds an entry to
aggregations
using a builder lambda. -
groupBy
API name:group_by
Adds all entries of
map
togroupBy
. -
groupBy
API name:group_by
Adds an entry to
groupBy
. -
groupBy
public final Pivot.Builder groupBy(java.lang.String key, java.util.function.Function<PivotGroupBy.Builder,ObjectBuilder<PivotGroupBy>> fn)API name:group_by
Adds an entry to
groupBy
using a builder lambda. -
maxPageSearchSize
API name:max_page_search_size
-
build
Builds aPivot
.- Specified by:
build
in interfaceObjectBuilder<Pivot>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-