public class TimestreamDataTable extends Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
TimestreamDataTable(AsyncClient asyncClient,
String dataTableName,
String metaTable,
String index,
TableStoreWriter dataWriter,
com.alicloud.openservices.tablestore.timestream.internal.MetaCacheManager metaCacheManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncWrite(TimestreamIdentifier identifier,
Point point)
Asynchronously write data, if the write fails, it needs to be obtained through
TableStoreCallback
Asynchronous interface, writes data via TableStoreWriter. |
protected void |
close() |
void |
flush()
Write all the data cached in memory to the database
|
DataGetter |
get(TimestreamIdentifier identifier)
Query a single timeline data
|
void |
write(TimestreamIdentifier identifier,
Point point)
Synchronously write data, and if the data writing fails, an exception will be thrown.
|
protected TimestreamDataTable(AsyncClient asyncClient, String dataTableName, String metaTable, String index, TableStoreWriter dataWriter, com.alicloud.openservices.tablestore.timestream.internal.MetaCacheManager metaCacheManager)
protected void close()
public void write(TimestreamIdentifier identifier, Point point)
identifier - Timeline identifierpoint - Data pointpublic void asyncWrite(TimestreamIdentifier identifier, Point point)
TableStoreCallback
Asynchronous interface, writes data via TableStoreWriter. Compared to synchronous interfaces, this interface offers better throughput for data writing.
identifier - Timeline identifierpoint - Data pointpublic DataGetter get(TimestreamIdentifier identifier)
identifier - The timeline identifierpublic void flush()
Copyright © 2025. All Rights Reserved.