public class DefaultTableStoreTimeseriesWriter extends Object implements TableStoreTimeseriesWriter
| 构造器和说明 |
|---|
DefaultTableStoreTimeseriesWriter(AsyncTimeseriesClientInterface ots,
TimeseriesWriterConfig config,
TableStoreCallback<TimeseriesTableRow,TimeseriesRowResult> callback,
Executor executor)
Time-series table writer
|
DefaultTableStoreTimeseriesWriter(String endpoint,
ServiceCredentials credentials,
String instanceName,
TimeseriesWriterConfig config,
ClientConfiguration cc,
TableStoreCallback<TimeseriesTableRow,TimeseriesRowResult> resultCallback)
Recommended time-series table writer
|
DefaultTableStoreTimeseriesWriter(String endpoint,
ServiceCredentials credentials,
String instanceName,
TimeseriesWriterConfig config,
TableStoreCallback<TimeseriesTableRow,TimeseriesRowResult> resultCallback)
Recommended time-series table writer
|
public DefaultTableStoreTimeseriesWriter(AsyncTimeseriesClientInterface ots, TimeseriesWriterConfig config, TableStoreCallback<TimeseriesTableRow,TimeseriesRowResult> callback, Executor executor)
ots - Asynchronous time-series table client instanceconfig - Writer configurationcallback - Row-level callbackexecutor - Thread poolpublic DefaultTableStoreTimeseriesWriter(String endpoint, ServiceCredentials credentials, String instanceName, TimeseriesWriterConfig config, TableStoreCallback<TimeseriesTableRow,TimeseriesRowResult> resultCallback)
endpoint - Instance domain namecredentials - Authentication information: includes AK, and also supports tokeninstanceName - Instance nameconfig - Writer configurationresultCallback - Row-level callbackpublic DefaultTableStoreTimeseriesWriter(String endpoint, ServiceCredentials credentials, String instanceName, TimeseriesWriterConfig config, ClientConfiguration cc, TableStoreCallback<TimeseriesTableRow,TimeseriesRowResult> resultCallback)
endpoint - Instance domain namecredentials - Authentication information: includes Access Key (AK), and also supports tokeninstanceName - Instance nameconfig - Configuration for the writercc - Client configurationresultCallback - Row-level callbackpublic void startFlushTimer(int flushInterval)
public void addTimeseriesRowChange(TimeseriesTableRow timeseriesTableRow) throws ClientException
addTimeseriesRowChange 在接口中 TableStoreTimeseriesWriterClientExceptionpublic boolean addTimeseriesRowInternal(TimeseriesTableRow timeseriesTableRow, TimeseriesGroup timeseriesGroup)
public Future<TimeseriesWriterResult> addTimeseriesRowChangeWithFuture(TimeseriesTableRow timeseriesTableRow) throws ClientException
addTimeseriesRowChangeWithFuture 在接口中 TableStoreTimeseriesWritertimeseriesTableRow - the data of timeseries tableClientExceptionpublic boolean tryAddTimeseriesRowChange(TimeseriesTableRow timeseriesTableRow) throws ClientException
public void addTimeseriesRowChange(List<TimeseriesTableRow> timeseriesTableRows, List<TimeseriesTableRow> dirtyTimeseriesTableRows) throws ClientException
addTimeseriesRowChange 在接口中 TableStoreTimeseriesWriterClientExceptionpublic Future<TimeseriesWriterResult> addTimeseriesRowChangeWithFuture(List<TimeseriesTableRow> timeseriesTableRows) throws ClientException
addTimeseriesRowChangeWithFuture 在接口中 TableStoreTimeseriesWritertimeseriesTableRows - List of timeseries table dataClientExceptionpublic void setResultCallback(TableStoreCallback<TimeseriesTableRow,TimeseriesRowResult> resultCallback)
setResultCallback 在接口中 TableStoreTimeseriesWriterpublic TableStoreCallback<TimeseriesTableRow,TimeseriesRowResult> getResultCallback()
getResultCallback 在接口中 TableStoreTimeseriesWriterpublic TimeseriesWriterConfig getTimeseriesWriterConfig()
public TimeseriesWriterHandleStatistics getTimeseriesWriterStatistics()
public void flush()
throws ClientException
flush 在接口中 TableStoreTimeseriesWriterClientExceptionpublic void close()
close 在接口中 TableStoreTimeseriesWriterCopyright © 2025. All Rights Reserved.