Class RollupSearchRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<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 WithJsonObjectBuilderBase<RollupSearchRequest.Builder> implements ObjectBuilder<RollupSearchRequest>
Builder for
RollupSearchRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RollupSearchRequest.Builderaggregations(java.lang.String key, Aggregation value)API name:aggregationsRollupSearchRequest.Builderaggregations(java.lang.String key, java.util.function.Function<Aggregation.Builder,ObjectBuilder<Aggregation>> fn)API name:aggregationsRollupSearchRequest.Builderaggregations(java.util.Map<java.lang.String,Aggregation> map)API name:aggregationsRollupSearchRequestbuild()Builds aRollupSearchRequest.RollupSearchRequest.Builderindex(java.lang.String value, java.lang.String... values)Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedRollupSearchRequest.Builderindex(java.util.List<java.lang.String> list)Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedRollupSearchRequest.Builderquery(Query value)API name:queryRollupSearchRequest.Builderquery(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:queryprotected RollupSearchRequest.Builderself()RollupSearchRequest.Buildersize(java.lang.Integer value)Must be zero if set, as rollups work on pre-aggregated dataRollupSearchRequest.Buildertype(java.lang.String value)The 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, _mapPutAllMethods 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
public final RollupSearchRequest.Builder aggregations(java.util.Map<java.lang.String,Aggregation> map)API name:aggregationsAdds all entries of
maptoaggregations. -
aggregations
API name:aggregationsAdds an entry to
aggregations. -
aggregations
public final RollupSearchRequest.Builder aggregations(java.lang.String key, java.util.function.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
public final RollupSearchRequest.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)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 classWithJsonObjectBuilderBase<RollupSearchRequest.Builder>
-
build
Builds aRollupSearchRequest.- Specified by:
buildin interfaceObjectBuilder<RollupSearchRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-