Class OpenPointInTimeRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<OpenPointInTimeRequest.Builder>
co.elastic.clients.elasticsearch.core.OpenPointInTimeRequest.Builder
- All Implemented Interfaces:
WithJson<OpenPointInTimeRequest.Builder>
,ObjectBuilder<OpenPointInTimeRequest>
- Enclosing class:
- OpenPointInTimeRequest
public static class OpenPointInTimeRequest.Builder
extends RequestBase.AbstractBuilder<OpenPointInTimeRequest.Builder>
implements ObjectBuilder<OpenPointInTimeRequest>
Builder for
OpenPointInTimeRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowPartialSearchResults
(Boolean value) Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT.build()
Builds aOpenPointInTimeRequest
.expandWildcards
(ExpandWildcard value, ExpandWildcard... values) The type of index that wildcard patterns can match.expandWildcards
(List<ExpandWildcard> list) The type of index that wildcard patterns can match.ignoreUnavailable
(Boolean value) Iffalse
, the request returns an error if it targets a missing or closed index.Required - A comma-separated list of index names to open point in time; use_all
or empty string to perform the operation on all indicesRequired - A comma-separated list of index names to open point in time; use_all
or empty string to perform the operation on all indicesindexFilter
(Query value) Filter indices if the provided query rewrites tomatch_none
on every shard.indexFilter
(QueryVariant value) Filter indices if the provided query rewrites tomatch_none
on every shard.Filter indices if the provided query rewrites tomatch_none
on every shard.Required - Extend the length of time that the point in time persists.Required - Extend the length of time that the point in time persists.Maximum number of concurrent shard requests that each sub-search request executes per node.preference
(String value) The node or shard the operation should be performed on.A custom value that is used to route operations to a specific shard.protected OpenPointInTimeRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowPartialSearchResults
Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT. Iffalse
, creating a point in time request when a shard is missing or unavailable will throw an exception. Iftrue
, the point in time will contain all the shards that are available at the time of the request.API name:
allow_partial_search_results
-
expandWildcards
The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. It supports comma-separated values, such asopen,hidden
. Valid values are:all
,open
,closed
,hidden
,none
.API name:
expand_wildcards
Adds all elements of
list
toexpandWildcards
. -
expandWildcards
public final OpenPointInTimeRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. It supports comma-separated values, such asopen,hidden
. Valid values are:all
,open
,closed
,hidden
,none
.API name:
expand_wildcards
Adds one or more values to
expandWildcards
. -
index
Required - A comma-separated list of index names to open point in time; use_all
or empty string to perform the operation on all indicesAPI name:
index
Adds all elements of
list
toindex
. -
index
Required - A comma-separated list of index names to open point in time; use_all
or empty string to perform the operation on all indicesAPI name:
index
Adds one or more values to
index
. -
indexFilter
Filter indices if the provided query rewrites tomatch_none
on every shard.API name:
index_filter
-
indexFilter
public final OpenPointInTimeRequest.Builder indexFilter(Function<Query.Builder, ObjectBuilder<Query>> fn) Filter indices if the provided query rewrites tomatch_none
on every shard.API name:
index_filter
-
indexFilter
Filter indices if the provided query rewrites tomatch_none
on every shard.API name:
index_filter
-
keepAlive
Required - Extend the length of time that the point in time persists.API name:
keep_alive
-
keepAlive
public final OpenPointInTimeRequest.Builder keepAlive(Function<Time.Builder, ObjectBuilder<Time>> fn) Required - Extend the length of time that the point in time persists.API name:
keep_alive
-
maxConcurrentShardRequests
Maximum number of concurrent shard requests that each sub-search request executes per node.API name:
max_concurrent_shard_requests
-
preference
The node or shard the operation should be performed on. By default, it is random.API name:
preference
-
routing
A custom value that is used to route operations to a specific shard.API name:
routing
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<OpenPointInTimeRequest.Builder>
-
build
Builds aOpenPointInTimeRequest
.- Specified by:
build
in interfaceObjectBuilder<OpenPointInTimeRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-