Class RollupSearchRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.rollup.RollupSearchRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<RollupSearchRequest>
- Enclosing class:
- RollupSearchRequest
public static class RollupSearchRequest.Builder extends java.lang.Object implements ObjectBuilder<RollupSearchRequest>
Builder for
RollupSearchRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RollupSearchRequest.BuilderaddIndex(java.lang.String value)Add a value toindex(List), creating the list if needed.RollupSearchRequest.Builderaggs(java.lang.String key, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)Setaggs(Map)to a singleton map.RollupSearchRequest.Builderaggs(java.util.Map<java.lang.String,Aggregation> value)API name:aggsRollupSearchRequestbuild()Builds aRollupSearchRequest.RollupSearchRequest.Builderindex(java.lang.String... value)Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedRollupSearchRequest.Builderindex(java.util.List<java.lang.String> value)Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedRollupSearchRequest.BuilderputAggs(java.lang.String key, Aggregation value)Add a key/value toaggs(Map), creating the map if needed.RollupSearchRequest.BuilderputAggs(java.lang.String key, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)Add a key/value toaggs(Map), creating the map if needed.RollupSearchRequest.Builderquery(Query value)API name:queryRollupSearchRequest.Builderquery(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:queryRollupSearchRequest.Buildersize(java.lang.Integer value)API name:sizeRollupSearchRequest.Buildertype(java.lang.String value)The doc type inside the indexRollupSearchRequest.BuildertypedKeys(java.lang.Boolean value)Specify whether aggregation and suggester names should be prefixed by their respective types in the responseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedAPI name:
index -
index
Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedAPI name:
index -
addIndex
Add a value toindex(List), creating the list if needed. -
type
The doc type inside the indexAPI name:
type -
typedKeys
Specify whether aggregation and suggester names should be prefixed by their respective types in the responseAPI name:
typed_keys -
aggs
public RollupSearchRequest.Builder aggs(@Nullable java.util.Map<java.lang.String,Aggregation> value)API name:aggs -
putAggs
Add a key/value toaggs(Map), creating the map if needed. -
aggs
public RollupSearchRequest.Builder aggs(java.lang.String key, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)Setaggs(Map)to a singleton map. -
putAggs
public RollupSearchRequest.Builder putAggs(java.lang.String key, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)Add a key/value toaggs(Map), creating the map if needed. -
query
API name:query -
query
public RollupSearchRequest.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:query -
size
API name:size -
build
Builds aRollupSearchRequest.- Specified by:
buildin interfaceObjectBuilder<RollupSearchRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-