|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.client.action.support.BaseRequestBuilder<BulkRequest,BulkResponse>
org.elasticsearch.client.action.bulk.BulkRequestBuilder
public class BulkRequestBuilder
A bulk request holds an ordered IndexRequest
s and DeleteRequest
s and allows to executes
it in a single batch.
Field Summary |
---|
Fields inherited from class org.elasticsearch.client.action.support.BaseRequestBuilder |
---|
client, request |
Constructor Summary | |
---|---|
BulkRequestBuilder(Client client)
|
Method Summary | |
---|---|
BulkRequestBuilder |
add(byte[] data,
int from,
int length,
boolean contentUnsafe)
Adds a framed data in binary format |
BulkRequestBuilder |
add(DeleteRequest request)
Adds an DeleteRequest to the list of actions to execute. |
BulkRequestBuilder |
add(DeleteRequestBuilder request)
Adds an DeleteRequest to the list of actions to execute. |
BulkRequestBuilder |
add(IndexRequest request)
Adds an IndexRequest to the list of actions to execute. |
BulkRequestBuilder |
add(IndexRequestBuilder request)
Adds an IndexRequest to the list of actions to execute. |
protected void |
doExecute(ActionListener<BulkResponse> listener)
|
int |
numberOfActions()
The number of actions currently in the bulk. |
BulkRequestBuilder |
setConsistencyLevel(WriteConsistencyLevel consistencyLevel)
Sets the consistency level. |
BulkRequestBuilder |
setRefresh(boolean refresh)
Should a refresh be executed post this bulk operation causing the operations to be searchable. |
BulkRequestBuilder |
setReplicationType(ReplicationType replicationType)
Set the replication type for this operation. |
Methods inherited from class org.elasticsearch.client.action.support.BaseRequestBuilder |
---|
execute, execute, request |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BulkRequestBuilder(Client client)
Method Detail |
---|
public BulkRequestBuilder add(IndexRequest request)
IndexRequest
to the list of actions to execute. Follows the same behavior of IndexRequest
(for example, if no id is provided, one will be generated, or usage of the create flag).
public BulkRequestBuilder add(IndexRequestBuilder request)
IndexRequest
to the list of actions to execute. Follows the same behavior of IndexRequest
(for example, if no id is provided, one will be generated, or usage of the create flag).
public BulkRequestBuilder add(DeleteRequest request)
DeleteRequest
to the list of actions to execute.
public BulkRequestBuilder add(DeleteRequestBuilder request)
DeleteRequest
to the list of actions to execute.
public BulkRequestBuilder add(byte[] data, int from, int length, boolean contentUnsafe) throws java.lang.Exception
java.lang.Exception
public BulkRequestBuilder setReplicationType(ReplicationType replicationType)
public BulkRequestBuilder setConsistencyLevel(WriteConsistencyLevel consistencyLevel)
WriteConsistencyLevel.DEFAULT
.
public BulkRequestBuilder setRefresh(boolean refresh)
public int numberOfActions()
protected void doExecute(ActionListener<BulkResponse> listener)
doExecute
in class BaseRequestBuilder<BulkRequest,BulkResponse>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |