Class CountRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch.cat.CatRequestBase.AbstractBuilder<CountRequest.Builder>
co.elastic.clients.elasticsearch.cat.CountRequest.Builder
- All Implemented Interfaces:
- WithJson<CountRequest.Builder>,- ObjectBuilder<CountRequest>
- Enclosing class:
- CountRequest
public static class CountRequest.Builder
extends CatRequestBase.AbstractBuilder<CountRequest.Builder>
implements ObjectBuilder<CountRequest>
Builder for 
CountRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aCountRequest.final CountRequest.BuilderSets the units for columns that contain a byte-size value.final CountRequest.Builderh(CatCountColumn value, CatCountColumn... values) A comma-separated list of columns names to display.final CountRequest.BuilderA comma-separated list of columns names to display.final CountRequest.BuilderA comma-separated list of columns names to display.final CountRequest.BuilderA comma-separated list of data streams, indices, and aliases used to limit the request.final CountRequest.BuilderA comma-separated list of data streams, indices, and aliases used to limit the request.final CountRequest.BuilderprojectRouting(String value) Specifies a subset of projects to target for the search using project metadata tags in a subset of Lucene query syntax.final CountRequest.BuilderList of columns that determine how the table should be sorted.final CountRequest.BuilderList of columns that determine how the table should be sorted.protected CountRequest.Builderself()final CountRequest.BuilderSets the units for columns that contain a time duration.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
bytesSets the units for columns that contain a byte-size value. Note that byte-size value units work in terms of powers of 1024. For instance1kbmeans 1024 bytes, not 1000 bytes. If omitted, byte-size values are rendered with a suffix such askb,mb, orgb, chosen such that the numeric value of the column is as small as possible whilst still being at least1.0. If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit. Values that are not an exact multiple of the chosen unit are rounded down.API name: bytes
- 
hA comma-separated list of columns names to display. It supports simple wildcards.API name: hAdds all elements of listtoh.
- 
hA comma-separated list of columns names to display. It supports simple wildcards.API name: hAdds one or more values to h.
- 
hA comma-separated list of columns names to display. It supports simple wildcards.API name: hAdds one or more enum values to h.
- 
indexA comma-separated list of data streams, indices, and aliases used to limit the request. It supports wildcards (*). To target all data streams and indices, omit this parameter or use*or_all.API name: indexAdds all elements of listtoindex.
- 
indexA comma-separated list of data streams, indices, and aliases used to limit the request. It supports wildcards (*). To target all data streams and indices, omit this parameter or use*or_all.API name: indexAdds one or more values to index.
- 
projectRoutingSpecifies a subset of projects to target for the search using project metadata tags in a subset of Lucene query syntax. Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). Examples: _alias:my-project _alias:_origin _alias:pr Supported in serverless only.API name: project_routing
- 
sList of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting:ascor:descas a suffix to the column name.API name: sAdds all elements of listtos.
- 
sList of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting:ascor:descas a suffix to the column name.API name: sAdds one or more values to s.
- 
timeSets the units for columns that contain a time duration. If omitted, time duration values are rendered with a suffix such asms,s,morh, chosen such that the numeric value of the column is as small as possible whilst still being at least1.0. If given, time duration values are rendered as an integer with no suffix. Values that are not an exact multiple of the chosen unit are rounded down.API name: time
- 
self- Specified by:
- selfin class- CatRequestBase.AbstractBuilder<CountRequest.Builder>
 
- 
buildBuilds aCountRequest.- Specified by:
- buildin interface- ObjectBuilder<CountRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-