/** * @param index * @return Gets the walEdit for the operation(Mutation) at the specified position. */ public WALEdit getWalEdit(int index) { return this.walEditsFromCoprocessors[getAbsoluteIndex(index)]; }
/** * Sets the status code for the operation(Mutation) at the specified position. * By setting this status, {@link org.apache.hadoop.hbase.coprocessor.RegionObserver} * can make HRegion to skip Mutations. * @param index * @param opStatus */ public void setOperationStatus(int index, OperationStatus opStatus) { this.retCodeDetails[getAbsoluteIndex(index)] = opStatus; }
/** * @param index * @return The operation(Mutation) at the specified position. */ public T getOperation(int index) { return operations[getAbsoluteIndex(index)]; }
/** * @param index * @return Gets the status code for the operation(Mutation) at the specified position. */ public OperationStatus getOperationStatus(int index) { return this.retCodeDetails[getAbsoluteIndex(index)]; }
/** * Sets the walEdit for the operation(Mutation) at the specified position. * @param index * @param walEdit */ public void setWalEdit(int index, WALEdit walEdit) { this.walEditsFromCoprocessors[getAbsoluteIndex(index)] = walEdit; }
public Mutation[] getOperationsFromCoprocessors(int index) { return operationsFromCoprocessors == null ? null : operationsFromCoprocessors[getAbsoluteIndex(index)]; }
/** * Add more Mutations corresponding to the Mutation at the given index to be committed atomically * in the same batch. These mutations are applied to the WAL and applied to the memstore as well. * The timestamp of the cells in the given Mutations MUST be obtained from the original mutation. * <b>Note:</b> The durability from CP will be replaced by the durability of corresponding mutation. * @param index the index that corresponds to the original mutation index in the batch * @param newOperations the Mutations to add */ public void addOperationsFromCP(int index, Mutation[] newOperations) { if (this.operationsFromCoprocessors == null) { // lazy allocation to save on object allocation in case this is not used this.operationsFromCoprocessors = new Mutation[operations.length][]; } this.operationsFromCoprocessors[getAbsoluteIndex(index)] = newOperations; }
/** * @param index * @return Gets the walEdit for the operation(Mutation) at the specified position. */ public WALEdit getWalEdit(int index) { return this.walEditsFromCoprocessors[getAbsoluteIndex(index)]; }
/** * @param index * @return The operation(Mutation) at the specified position. */ public T getOperation(int index) { return operations[getAbsoluteIndex(index)]; }
/** * Sets the status code for the operation(Mutation) at the specified position. * By setting this status, {@link RegionObserver} can make HRegion to skip Mutations. * @param index * @param opStatus */ public void setOperationStatus(int index, OperationStatus opStatus) { this.retCodeDetails[getAbsoluteIndex(index)] = opStatus; }
/** * @param index * @return Gets the status code for the operation(Mutation) at the specified position. */ public OperationStatus getOperationStatus(int index) { return this.retCodeDetails[getAbsoluteIndex(index)]; }
/** * Sets the walEdit for the operation(Mutation) at the specified position. * @param index * @param walEdit */ public void setWalEdit(int index, WALEdit walEdit) { this.walEditsFromCoprocessors[getAbsoluteIndex(index)] = walEdit; }
/** * @param index * @return Gets the walEdit for the operation(Mutation) at the specified position. */ public WALEdit getWalEdit(int index) { return this.walEditsFromCoprocessors[getAbsoluteIndex(index)]; }
/** * Sets the status code for the operation(Mutation) at the specified position. * By setting this status, {@link org.apache.hadoop.hbase.coprocessor.RegionObserver} * can make HRegion to skip Mutations. * @param index * @param opStatus */ public void setOperationStatus(int index, OperationStatus opStatus) { this.retCodeDetails[getAbsoluteIndex(index)] = opStatus; }
/** * Sets the walEdit for the operation(Mutation) at the specified position. * @param index * @param walEdit */ public void setWalEdit(int index, WALEdit walEdit) { this.walEditsFromCoprocessors[getAbsoluteIndex(index)] = walEdit; }
/** * @param index * @return The operation(Mutation) at the specified position. */ public T getOperation(int index) { return operations[getAbsoluteIndex(index)]; }
/** * @param index * @return Gets the status code for the operation(Mutation) at the specified position. */ public OperationStatus getOperationStatus(int index) { return this.retCodeDetails[getAbsoluteIndex(index)]; }