@Value.Immutable(copy=false) 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 BulkAction.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 interface |
BulkOperation.Builder
Builder interface for all immutable implementations to mask the
use of the generated sources to avoid confusion.
|
| 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.