@InterfaceAudience.Private public class MiniBatchOperationInProgress<T> extends Object
Modifier and Type | Field and Description |
---|---|
private int |
firstIndex |
private int |
lastIndexExclusive |
private T[] |
operations |
private OperationStatus[] |
retCodeDetails |
private WALEdit[] |
walEditsFromCoprocessors |
Constructor and Description |
---|
MiniBatchOperationInProgress(T[] operations,
OperationStatus[] retCodeDetails,
WALEdit[] walEditsFromCoprocessors,
int firstIndex,
int lastIndexExclusive) |
Modifier and Type | Method and Description |
---|---|
private int |
getAbsoluteIndex(int index) |
T |
getOperation(int index) |
OperationStatus |
getOperationStatus(int index) |
WALEdit |
getWalEdit(int index) |
void |
setOperationStatus(int index,
OperationStatus opStatus)
Sets the status code for the operation(Mutation) at the specified position.
|
void |
setWalEdit(int index,
WALEdit walEdit)
Sets the walEdit for the operation(Mutation) at the specified position.
|
int |
size() |
private final T[] operations
private final OperationStatus[] retCodeDetails
private final WALEdit[] walEditsFromCoprocessors
private final int firstIndex
private final int lastIndexExclusive
public MiniBatchOperationInProgress(T[] operations, OperationStatus[] retCodeDetails, WALEdit[] walEditsFromCoprocessors, int firstIndex, int lastIndexExclusive)
public int size()
public T getOperation(int index)
index
- public void setOperationStatus(int index, OperationStatus opStatus)
RegionObserver
can make HRegion to skip Mutations.index
- opStatus
- public OperationStatus getOperationStatus(int index)
index
- public void setWalEdit(int index, WALEdit walEdit)
index
- walEdit
- public WALEdit getWalEdit(int index)
index
- private int getAbsoluteIndex(int index)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.