Package org.opensearch.action.search
Class CreatePitRequest
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.transport.TransportRequest
org.opensearch.action.ActionRequest
org.opensearch.action.search.CreatePitRequest
- All Implemented Interfaces:
IndicesRequest
,IndicesRequest.Replaceable
,org.opensearch.core.common.io.stream.Writeable
,org.opensearch.core.xcontent.ToXContent
,TaskAwareRequest
@PublicApi(since="2.3.0")
public class CreatePitRequest
extends ActionRequest
implements IndicesRequest.Replaceable, org.opensearch.core.xcontent.ToXContent
A request to make create point in time against one or more indices.
- Opensearch.api:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.opensearch.action.IndicesRequest
IndicesRequest.Replaceable
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionCreatePitRequest
(org.opensearch.common.unit.TimeValue keepAlive, Boolean allowPartialPitCreation, String... indices) CreatePitRequest
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionvoid
allowPartialPitCreation
(Boolean allowPartialPitCreation) Sets if this request should allow partial results.final String
createTask
(long id, String type, String action, org.opensearch.core.tasks.TaskId parentTaskId, Map<String, String> headers) Returns the task object that should be used to keep track of the processing of the request.String[]
org.opensearch.common.unit.TimeValue
String[]
indices()
Returns the array of indices that the action relates toSets the indices that the action relates to.Returns the indices options used to resolve indices.indicesOptions
(IndicesOptions indicesOptions) void
setIndices
(String[] indices) void
setIndicesOptions
(IndicesOptions indicesOptions) void
setKeepAlive
(org.opensearch.common.unit.TimeValue keepAlive) void
setPreference
(String preference) void
setRouting
(String routing) boolean
org.opensearch.core.xcontent.XContentBuilder
toXContent
(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) validate()
void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.action.ActionRequest
getShouldStoreResult
Methods inherited from class org.opensearch.transport.TransportRequest
getParentTask, setParentTask
Methods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensearch.action.IndicesRequest
includeDataStreams
Methods inherited from interface org.opensearch.tasks.TaskAwareRequest
getDescription, setParentTask
Methods inherited from interface org.opensearch.core.xcontent.ToXContent
isFragment
-
Constructor Details
-
CreatePitRequest
-
CreatePitRequest
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Overrides:
writeTo
in classActionRequest
- Throws:
IOException
-
getRouting
-
getPreference
-
getIndices
-
getIndicesOptions
-
getKeepAlive
public org.opensearch.common.unit.TimeValue getKeepAlive() -
allowPartialPitCreation
Sets if this request should allow partial results. -
shouldAllowPartialPitCreation
public boolean shouldAllowPartialPitCreation() -
setRouting
-
setPreference
-
setIndices
-
setIndicesOptions
-
validate
- Specified by:
validate
in classActionRequest
-
indices
Description copied from interface:IndicesRequest
Returns the array of indices that the action relates to- Specified by:
indices
in interfaceIndicesRequest
-
indicesOptions
Description copied from interface:IndicesRequest
Returns the indices options used to resolve indices. They tell for instance whether a single index is accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed.- Specified by:
indicesOptions
in interfaceIndicesRequest
-
indicesOptions
-
setKeepAlive
public void setKeepAlive(org.opensearch.common.unit.TimeValue keepAlive) -
buildDescription
-
createTask
public Task createTask(long id, String type, String action, org.opensearch.core.tasks.TaskId parentTaskId, Map<String, String> headers) Description copied from interface:TaskAwareRequest
Returns the task object that should be used to keep track of the processing of the request.- Specified by:
createTask
in interfaceTaskAwareRequest
-
indices
Description copied from interface:IndicesRequest.Replaceable
Sets the indices that the action relates to.- Specified by:
indices
in interfaceIndicesRequest.Replaceable
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.opensearch.core.xcontent.ToXContent
- Throws:
IOException
-