public class BulkOperationState extends Object implements Closeable
A bulk operation state MUST only be be used for the single store from which it was created, and MUSTonly for the duration of a single bulk update operation.
Passing in the state is to allow the stores to maintain state about updates they have already made to their store during this single operation: a cache of what has happened. It is not a list of operations to be applied. If a list of operations to perform is built up (e.g. during rename) that is the duty of the caller, not this state.
After the operation has completed, it MUST be closed so as to guarantee that all state is released.
| Modifier and Type | Class and Description |
|---|---|
static class |
BulkOperationState.OperationType
Enumeration of operations which can be performed in bulk.
|
| Constructor and Description |
|---|
BulkOperationState(BulkOperationState.OperationType operation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
BulkOperationState.OperationType |
getOperation()
Get the operation type.
|
public BulkOperationState(BulkOperationState.OperationType operation)
operation - the type of the operation.public BulkOperationState.OperationType getOperation()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.