public static interface BulkAction.Builder
| Modifier and Type | Method and Description |
|---|---|
BulkAction |
build()
Constructs a new
BulkAction from this builder. |
BulkAction.Builder |
id(String id)
Sets the document identifier, if any.
|
BulkAction.Builder |
index(String index)
Sets the name of the targeted index, if any.
|
BulkAction.Builder |
operation(String operation)
Sets the operation being carried out in the action.
|
BulkAction.Builder |
parent(String parent)
Sets the parent identifier, if any.
|
BulkAction.Builder |
refresh(Boolean refresh)
Sets whether the action should trigger a refresh.
|
BulkAction.Builder |
routing(String routing)
Sets the routing key of the action, if any.
|
BulkAction.Builder |
source(String source)
Sets the source body of the action.
|
BulkAction.Builder |
type(String type)
Sets the name of the targeted type, if any.
|
BulkAction.Builder |
version(Integer version)
Sets the version of the target document, if any.
|
BulkAction.Builder |
waitForActiveShards(Boolean waitForActiveShards)
Sets whether the action should wait for active shards.
|
BulkAction.Builder operation(String operation)
operation - the name of the Elasticsearch operation.BulkAction.Builder instance for chaining calls.BulkAction.Builder index(String index)
index - the name of the targeted index.BulkAction.Builder instance for chaining calls.BulkAction.Builder type(String type)
type - the name of the targeted type.BulkAction.Builder instance for chaining calls.BulkAction.Builder id(String id)
id - the document identifier to operate on.BulkAction.Builder instance for chaining calls.BulkAction.Builder parent(String parent)
parent - the parent document identifier.BulkAction.Builder instance for chaining calls.BulkAction.Builder routing(String routing)
routing - the routing key to apply to the operation.BulkAction.Builder instance for chaining calls.BulkAction.Builder source(String source)
source - the source of the request as a String.BulkAction.Builder instance for chaining calls.BulkAction.Builder version(Integer version)
version - an integer version identifier.BulkAction.Builder instance for chaining calls.BulkAction.Builder refresh(Boolean refresh)
refresh - a boolean representing a triggered refresh.BulkAction.Builder instance for chaining calls.BulkAction.Builder waitForActiveShards(Boolean waitForActiveShards)
waitForActiveShards - a boolean representing whether to wait or not.BulkAction.Builder instance for chaining calls.BulkAction build()
BulkAction from this builder.BulkAction instance.Copyright © 2017. All rights reserved.