public class BatchWriteRowRequest extends TxnRequest
| 构造器和说明 |
|---|
BatchWriteRowRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRowChange(RowChange rowChange)
Add write operation parameters for a specific table.
|
BatchWriteRowRequest |
createRequestForRetry(List<BatchWriteRowResponse.RowResult> failedRows)
Based on the returned result of the request, extract the rows that failed to execute and reconstruct a new request.
|
String |
getOperationName() |
Map<String,List<RowChange>> |
getRowChange()
Get the operation parameters for all tables.
|
RowChange |
getRowChange(String tableName,
int index)
Returns the parameters for a single write operation based on the table name and index.
|
int |
getRowsCount()
Get the total number of rows included in this BatchWriteRow request.
|
boolean |
isAtomic()
Check if it is a batch atomic write.
|
boolean |
isAtomicSet()
Whether the batch atomic write option is set.
|
boolean |
isEmpty() |
void |
setAtomic(boolean atomic)
Set whether to use batch atomic writes.
|
getTransactionId, hasSetTransactionId, setTransactionIdgetExtension, setExtensionpublic String getOperationName()
public void addRowChange(RowChange rowChange)
rowChange - Parameters for a write operation. The operation type can be Put, Update, or Delete. If Txn is used, each BatchWriteRow is only allowed for a single table.public RowChange getRowChange(String tableName, int index)
tableName - the name of the tableindex - the index of this row in the parameter listpublic Map<String,List<RowChange>> getRowChange()
public BatchWriteRowRequest createRequestForRetry(List<BatchWriteRowResponse.RowResult> failedRows)
failedRows - Rows that failed during the write operationpublic boolean isEmpty()
public int getRowsCount()
public boolean isAtomicSet()
public void setAtomic(boolean atomic)
atomic - Whether to use batch atomic writespublic boolean isAtomic()
Copyright © 2025. All Rights Reserved.