Class RollupSearchRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<RollupSearchRequest.Builder>
co.elastic.clients.elasticsearch.rollup.RollupSearchRequest.Builder
- All Implemented Interfaces:
WithJson<RollupSearchRequest.Builder>,ObjectBuilder<RollupSearchRequest>
- Enclosing class:
- RollupSearchRequest
public static class RollupSearchRequest.Builder
extends RequestBase.AbstractBuilder<RollupSearchRequest.Builder>
implements ObjectBuilder<RollupSearchRequest>
Builder for
RollupSearchRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregations(String key, Aggregation value) API name:aggregationsAPI name:aggregationsaggregations(Map<String, Aggregation> map) API name:aggregationsbuild()Builds aRollupSearchRequest.Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedRequired - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedAPI name:queryAPI name:queryprotected RollupSearchRequest.Builderself()Must be zero if set, as rollups work on pre-aggregated dataThe doc type inside the indexMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregations
API name:aggregationsAdds all entries of
maptoaggregations. -
aggregations
API name:aggregationsAdds an entry to
aggregations. -
aggregations
public final RollupSearchRequest.Builder aggregations(String key, Function<Aggregation.Builder, ObjectBuilder<Aggregation>> fn) API name:aggregationsAdds an entry to
aggregationsusing a builder lambda. -
index
Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedAPI name:
indexAdds all elements of
listtoindex. -
index
Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedAPI name:
indexAdds one or more values to
index. -
query
API name:query -
query
API name:query -
size
Must be zero if set, as rollups work on pre-aggregated dataAPI name:
size -
type
The doc type inside the indexAPI name:
type -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<RollupSearchRequest.Builder>
-
build
Builds aRollupSearchRequest.- Specified by:
buildin interfaceObjectBuilder<RollupSearchRequest>- Throws:
NullPointerException- if some of the required fields are null.
-