@Value.Immutable public abstract class BulkAction extends Object
BulkAction is an action which can be queued into a BulkOperation
to carry out batch actions against Elasticsearch. Each action has a contained
definition as the bulk does not have any knowledge of the actions themselves (e.g.
it doesn't infer indices, etc).
Almost everything in here is optional, aside from the operation name itself. This
is because only the index and type make sense otherwise, but they can be specified
in the API call itself via the Elasticsearch path and so they must be nullable.| Modifier and Type | Class and Description |
|---|---|
static class |
BulkAction.Builder
Builder bindings to allow for creating actions with validation.
|
| Constructor and Description |
|---|
BulkAction() |
| Modifier and Type | Method and Description |
|---|---|
static BulkAction.Builder |
builder()
Returns a builder in order to create an action.
|
abstract String |
id()
The document identifier targeted by this action.
|
abstract String |
index()
The index targeted by this action.
|
abstract String |
operation()
The type of operation to carry out inside this action.
|
abstract String |
parent()
The parent identifier associated with this action.
|
abstract Boolean |
refresh()
Whether this action should cause a refresh or not.
|
abstract String |
routing()
The routing identifier associated with this action.
|
abstract String |
source()
The source body associated with this action.
|
abstract String |
type()
The index type targeted by this action.
|
abstract Integer |
version()
The document version associated with this action.
|
abstract Boolean |
waitForActiveShards()
Whether this action should wait for shards or not.
|
public abstract String operation()
@Nullable public abstract String index()
@Nullable public abstract String type()
@Nullable public abstract String id()
@Nullable public abstract String parent()
@Nullable public abstract String routing()
@Nullable public abstract String source()
@Nullable public abstract Integer version()
@Nullable public abstract Boolean refresh()
@Nullable public abstract Boolean waitForActiveShards()
public static BulkAction.Builder builder()
BulkAction.Builder instance.Copyright © 2017. All rights reserved.