| 限定符和类型 | 方法和说明 |
|---|---|
TableStoreCallback<RowChange,ConsumedCapacity> |
DefaultTableStoreWriter.getCallback() |
TableStoreCallback<RowChange,ConsumedCapacity> |
TableStoreWriter.getCallback()
已过时。
please change to
TableStoreWriter.getResultCallback() |
TableStoreCallback<RowChange,RowWriteResult> |
DefaultTableStoreWriter.getResultCallback() |
TableStoreCallback<RowChange,RowWriteResult> |
TableStoreWriter.getResultCallback()
Get the set Callback.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DefaultTableStoreWriter.addRowChange(RowChange rowChange) |
void |
TableStoreWriter.addRowChange(RowChange rowChange)
Add a row of data to the local buffer.
|
Future<WriterResult> |
DefaultTableStoreWriter.addRowChangeWithFuture(RowChange rowChange) |
Future<WriterResult> |
TableStoreWriter.addRowChangeWithFuture(RowChange rowChange)
The interface function is the same as
TableStoreWriter.addRowChange(com.alicloud.openservices.tablestore.model.RowChange),
but it will return a Future of the write result, indicating the success or failure status of writing this row. |
boolean |
DefaultTableStoreWriter.tryAddRowChange(RowChange rowChange) |
boolean |
TableStoreWriter.tryAddRowChange(RowChange rowChange)
Same with
TableStoreWriter.addRowChange(RowChange), but it won't be blocked if the buffer is full. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DefaultTableStoreWriter.addRowChange(List<RowChange> rowChanges,
List<RowChange> dirtyRows) |
void |
DefaultTableStoreWriter.addRowChange(List<RowChange> rowChanges,
List<RowChange> dirtyRows) |
void |
TableStoreWriter.addRowChange(List<RowChange> rowChanges,
List<RowChange> dirtyRows)
Batch write rows to the local buffer.
|
void |
TableStoreWriter.addRowChange(List<RowChange> rowChanges,
List<RowChange> dirtyRows)
Batch write rows to the local buffer.
|
Future<WriterResult> |
DefaultTableStoreWriter.addRowChangeWithFuture(List<RowChange> rowChanges) |
Future<WriterResult> |
TableStoreWriter.addRowChangeWithFuture(List<RowChange> rowChanges)
Batch write rows to the local buffer.
|
void |
DefaultTableStoreWriter.setCallback(TableStoreCallback<RowChange,ConsumedCapacity> callback) |
void |
TableStoreWriter.setCallback(TableStoreCallback<RowChange,ConsumedCapacity> callback)
已过时。
please change to
TableStoreWriter.setResultCallback(TableStoreCallback) |
void |
DefaultTableStoreWriter.setResultCallback(TableStoreCallback<RowChange,RowWriteResult> resultCallback) |
void |
TableStoreWriter.setResultCallback(TableStoreCallback<RowChange,RowWriteResult> callback)
Set Callback, which will provide feedback when data writing succeeds or fails.
|
| 构造器和说明 |
|---|
DefaultTableStoreWriter(AsyncClientInterface ots,
String tableName,
WriterConfig config,
TableStoreCallback<RowChange,ConsumedCapacity> callback,
Executor executor) |
DefaultTableStoreWriter(String endpoint,
ServiceCredentials credentials,
String instanceName,
String tableName,
WriterConfig config,
ClientConfiguration cc,
TableStoreCallback<RowChange,RowWriteResult> resultCallback) |
DefaultTableStoreWriter(String endpoint,
ServiceCredentials credentials,
String instanceName,
String tableName,
WriterConfig config,
TableStoreCallback<RowChange,RowWriteResult> resultCallback) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ParamChecker.checkRowChange(TableMeta tableMeta,
RowChange rowChange,
WriterConfig config)
It does following checkings:
- primary key schema is matched with which defined in table meta
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
RowDeleteChange |
class |
RowPutChange |
class |
RowUpdateChange |
| 限定符和类型 | 方法和说明 |
|---|---|
RowChange |
BulkImportRequest.getRowChange(int index) |
RowChange |
BatchWriteRowRequest.getRowChange(String tableName,
int index)
Returns the parameters for a single write operation based on the table name and index.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,List<RowChange>> |
BatchWriteRowRequest.getRowChange()
Get the operation parameters for all tables.
|
List<RowChange> |
BulkImportRequest.getRowChange() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
BatchWriteRowRequest.addRowChange(RowChange rowChange)
Add write operation parameters for a specific table.
|
void |
BulkImportRequest.addRowChange(RowChange rowChange) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
BulkImportRequest.addRowChanges(List<RowChange> rowChanges) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
RowPutChangeWithCallback |
| 构造器和说明 |
|---|
TimestreamDBClient(AsyncClient asyncClient,
TimestreamDBConfiguration config,
WriterConfig writerConfig,
TableStoreCallback<RowChange,ConsumedCapacity> callback)
Constructor of TimestreamDBClient
|
| 限定符和类型 | 字段和说明 |
|---|---|
RowChange |
RowChangeWithGroup.rowChange |
RowChange |
RowChangeEvent.rowChange |
| 限定符和类型 | 方法和说明 |
|---|---|
RowChange |
WriterResult.RowChangeStatus.getRowChange() |
| 限定符和类型 | 方法和说明 |
|---|---|
CallbackImpledFuture<RowChange,WriterResult> |
Group.getFuture() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
Bucket.addRowChange(RowChange rowChange,
Group group) |
void |
Group.failedOneRow(RowChange rowChange,
Exception exception) |
void |
RowChangeEvent.setValue(RowChange rowChange,
Group group) |
void |
Group.succeedOneRow(RowChange rowChange) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Bucket.setResultCallback(TableStoreCallback<RowChange,RowWriteResult> resultCallback) |
| 构造器和说明 |
|---|
RowChangeStatus(boolean succeed,
RowChange rowChange,
Exception exception) |
RowChangeWithGroup(RowChange rowChange,
Group group) |
| 构造器和说明 |
|---|
Bucket(BucketConfig bucketConfig,
AsyncClientInterface ots,
WriterConfig writerConfig,
TableStoreCallback<RowChange,RowWriteResult> resultCallback,
Executor executor,
WriterHandleStatistics writerStatistics,
Semaphore semaphore) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
Dispatcher.getDispatchIndex(RowChange rowChange)
Get the write partition bucket number
|
int |
HashPrimaryKeyDispatcher.getDispatchIndex(RowChange rowChange) |
int |
RoundRobinDispatcher.getDispatchIndex(RowChange rowChange) |
int |
HashPartitionKeyDispatcher.getDispatchIndex(RowChange rowChange) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected TableStoreCallback<RowChange,RowWriteResult> |
FlushCallbackFactory.callback |
protected TableStoreCallback<RowChange,RowWriteResult> |
BaseRequestManager.callback |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RowEventHandler.setCallback(TableStoreCallback<RowChange,RowWriteResult> callback) |
Copyright © 2025. All Rights Reserved.