Package org.elasticsearch.action.support
Interface WriteRequest<R extends WriteRequest<R>>
-
- All Superinterfaces:
Writeable
- All Known Implementing Classes:
BulkRequest,BulkShardRequest,DeleteRequest,IndexRequest,ReplicatedWriteRequest,ResyncReplicationRequest,RetentionLeaseSyncAction.Request,UpdateRequest
public interface WriteRequest<R extends WriteRequest<R>> extends Writeable
Interface implemented by requests that modify the documents in an index likeIndexRequest,UpdateRequest, andBulkRequest. Rather than implement this directly most implementers should extendReplicatedWriteRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWriteRequest.RefreshPolicy-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Method Summary
Modifier and Type Method Description WriteRequest.RefreshPolicygetRefreshPolicy()Should this request trigger a refresh (WriteRequest.RefreshPolicy.IMMEDIATE), wait for a refresh ( WriteRequest.RefreshPolicy.WAIT_UNTIL), or proceed ignore refreshes entirely (WriteRequest.RefreshPolicy.NONE, the default).default RsetRefreshPolicy(java.lang.String refreshPolicy)Parse the refresh policy from a string, only modifying it if the string is non null.RsetRefreshPolicy(WriteRequest.RefreshPolicy refreshPolicy)Should this request trigger a refresh (WriteRequest.RefreshPolicy.IMMEDIATE), wait for a refresh ( WriteRequest.RefreshPolicy.WAIT_UNTIL), or proceed ignore refreshes entirely (WriteRequest.RefreshPolicy.NONE, the default).ActionRequestValidationExceptionvalidate()
-
-
-
Method Detail
-
setRefreshPolicy
R setRefreshPolicy(WriteRequest.RefreshPolicy refreshPolicy)
Should this request trigger a refresh (WriteRequest.RefreshPolicy.IMMEDIATE), wait for a refresh ( WriteRequest.RefreshPolicy.WAIT_UNTIL), or proceed ignore refreshes entirely (WriteRequest.RefreshPolicy.NONE, the default).
-
setRefreshPolicy
default R setRefreshPolicy(java.lang.String refreshPolicy)
Parse the refresh policy from a string, only modifying it if the string is non null. Convenient to use with request parsing.
-
getRefreshPolicy
WriteRequest.RefreshPolicy getRefreshPolicy()
Should this request trigger a refresh (WriteRequest.RefreshPolicy.IMMEDIATE), wait for a refresh ( WriteRequest.RefreshPolicy.WAIT_UNTIL), or proceed ignore refreshes entirely (WriteRequest.RefreshPolicy.NONE, the default).
-
validate
ActionRequestValidationException validate()
-
-