IndicesRequest
DeleteRequest
, IndexRequest
, UpdateRequest
public interface DocWriteRequest<T> extends IndicesRequest
BulkRequest
Modifier and Type | Interface | Description |
---|---|---|
static class |
DocWriteRequest.OpType |
Requested operation type to perform on the document
|
IndicesRequest.Replaceable
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
id() |
Get the id of the document for this request
|
java.lang.String |
index() |
Get the index that this request operates on
|
IndicesOptions |
indicesOptions() |
Get the options for this request
|
DocWriteRequest.OpType |
opType() |
Get the requested document operation type of the request
|
java.lang.String |
parent() |
Get the parent for this request
|
static DocWriteRequest |
readDocumentRequest(StreamInput in) |
read a document write (index/delete/update) request
|
java.lang.String |
routing() |
Get the routing for this request
|
T |
routing(java.lang.String routing) |
Set the routing for this request
|
java.lang.String |
type() |
Get the type that this request operates on
|
long |
version() |
Get the document version for this request
|
T |
version(long version) |
Sets the version, which will perform the operation only if a matching
version exists and no changes happened on the doc since then.
|
VersionType |
versionType() |
Get the document version type for this request
|
T |
versionType(VersionType versionType) |
Sets the versioning type.
|
static void |
writeDocumentRequest(StreamOutput out,
DocWriteRequest request) |
write a document write (index/delete/update) request
|
indices
java.lang.String index()
java.lang.String type()
java.lang.String id()
IndicesOptions indicesOptions()
indicesOptions
in interface IndicesRequest
T routing(java.lang.String routing)
java.lang.String routing()
java.lang.String parent()
long version()
T version(long version)
VersionType versionType()
T versionType(VersionType versionType)
VersionType.INTERNAL
.DocWriteRequest.OpType opType()
DocWriteRequest.OpType
static DocWriteRequest readDocumentRequest(StreamInput in) throws java.io.IOException
java.io.IOException
static void writeDocumentRequest(StreamOutput out, DocWriteRequest request) throws java.io.IOException
java.io.IOException