Class Pivot.Builder
java.lang.Object
co.elastic.clients.elasticsearch.transform.Pivot.Builder
- All Implemented Interfaces:
ObjectBuilder<Pivot>
- Enclosing class:
- Pivot
public static class Pivot.Builder extends java.lang.Object 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, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)
Setaggregations(Map)
to a singleton map.Pivot.Builder
aggregations(java.util.Map<java.lang.String,Aggregation> value)
API name:aggregations
Pivot
build()
Builds aPivot
.Pivot.Builder
groupBy(java.lang.String key, java.util.function.Function<PivotGroupBy.Builder,ObjectBuilder<PivotGroupBy>> fn)
SetgroupBy(Map)
to a singleton map.Pivot.Builder
groupBy(java.util.Map<java.lang.String,PivotGroupBy> value)
API name:group_by
Pivot.Builder
maxPageSearchSize(java.lang.Integer value)
API name:max_page_search_size
Pivot.Builder
putAggregations(java.lang.String key, Aggregation value)
Add a key/value toaggregations(Map)
, creating the map if needed.Pivot.Builder
putAggregations(java.lang.String key, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)
Add a key/value toaggregations(Map)
, creating the map if needed.Pivot.Builder
putGroupBy(java.lang.String key, PivotGroupBy value)
Add a key/value togroupBy(Map)
, creating the map if needed.Pivot.Builder
putGroupBy(java.lang.String key, java.util.function.Function<PivotGroupBy.Builder,ObjectBuilder<PivotGroupBy>> fn)
Add a key/value togroupBy(Map)
, creating the map if needed.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
-
putAggregations
Add a key/value toaggregations(Map)
, creating the map if needed. -
aggregations
public Pivot.Builder aggregations(java.lang.String key, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)Setaggregations(Map)
to a singleton map. -
putAggregations
public Pivot.Builder putAggregations(java.lang.String key, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)Add a key/value toaggregations(Map)
, creating the map if needed. -
groupBy
API name:group_by
-
putGroupBy
Add a key/value togroupBy(Map)
, creating the map if needed. -
groupBy
public Pivot.Builder groupBy(java.lang.String key, java.util.function.Function<PivotGroupBy.Builder,ObjectBuilder<PivotGroupBy>> fn)SetgroupBy(Map)
to a singleton map. -
putGroupBy
public Pivot.Builder putGroupBy(java.lang.String key, java.util.function.Function<PivotGroupBy.Builder,ObjectBuilder<PivotGroupBy>> fn)Add a key/value togroupBy(Map)
, creating the map if needed. -
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.
-