@Value.Immutable public abstract class BulkOperation extends Object
BulkAction instances into
a single batch to be executed against Elasticsearch at a single point
in time, via a single HTTP request.
The only modifiable state of this class is the actions list, which can
be modified via the ImmutableBulkAction.Builder. All other
values are derived at build time as they'll never change, and we can
assume that they'll always be used.| Modifier and Type | Class and Description |
|---|---|
static class |
BulkOperation.Builder
Builder bindings to allow for creating operations with validation.
|
| Constructor and Description |
|---|
BulkOperation() |
| Modifier and Type | Method and Description |
|---|---|
abstract List<BulkAction> |
actions()
The list of actions associated with this operation.
|
static BulkOperation.Builder |
builder()
Returns a builder in order to create an operation.
|
long |
estimatedSizeInBytes()
The estimated size of this operation.
|
long |
numberOfActions()
The number of actions in this operation.
|
String |
payload()
The textual representation of this operation.
|
public abstract List<BulkAction> actions()
List of actions to execute.@Value.Derived public long estimatedSizeInBytes()
@Value.Derived public long numberOfActions()
@Value.Derived public String payload()
public static BulkOperation.Builder builder()
BulkAction.Builder instance.Copyright © 2017. All rights reserved.