public class DatahubClientBatchImpl extends DatahubClientJsonImpl
| 构造器和说明 |
|---|
DatahubClientBatchImpl(String endpoint,
Account account,
HttpConfig httpConfig,
String userAgent) |
| 限定符和类型 | 方法和说明 |
|---|---|
GetRecordsResult |
getRecords(String projectName,
String topicName,
String shardId,
RecordSchema schema,
String cursor,
int limit)
Get the TUPLE records of a shard.
|
GetRecordsResult |
getRecords(String projectName,
String topicName,
String shardId,
String cursor,
int limit)
Get the BLOB records of a shard.
|
PutRecordsByShardResult |
putRecordsByShard(String projectName,
String topicName,
String shardId,
List<RecordEntry> records)
Write data records into a DataHub shard.
|
appendConnectorField, appendConnectorField, appendField, appendField, commitSubscriptionOffset, createAlarmRule, createConnector, createConnector, createConnector, createProject, createSubscription, createTopic, createTopic, createTopic, createTopic, deleteAlarmRule, deleteConnector, deleteConnector, deleteProject, deleteSubscription, deleteTopic, extendShard, getAlarmRule, getConnector, getConnector, getConnectorDoneTime, getConnectorDoneTime, getConnectorShardStatus, getConnectorShardStatus, getConnectorShardStatus, getConnectorShardStatus, getCursor, getCursor, getMeterInfo, getProject, getSubscription, getSubscriptionOffset, getTopic, heartbeat, joinGroup, leaveGroup, listAlarmRule, listAlarmRule, listConnector, listProject, listProject, listShard, listSubscription, listTopic, listTopic, mergeShard, openSubscriptionSession, putRecords, reloadConnector, reloadConnector, reloadConnector, reloadConnector, resetSubscriptionOffset, splitShard, splitShard, syncGroup, updateAlarmRule, updateConnector, updateConnector, updateConnector, updateConnector, updateConnector, updateConnectorOffset, updateConnectorOffset, updateConnectorState, updateConnectorState, updateProject, updateProjectVpcWhitelist, updateSubscription, updateSubscriptionState, updateTopic, updateTopic, waitForShardReady, waitForShardReadyinnerSetInterceptorpublic DatahubClientBatchImpl(String endpoint, Account account, HttpConfig httpConfig, String userAgent)
public PutRecordsByShardResult putRecordsByShard(String projectName, String topicName, String shardId, List<RecordEntry> records)
DatahubClientRecordEntry, but the ShardId, HashKey, PartitionKey
of the struct are useless.
This method is recommended to use to write data.
putRecordsByShard 在接口中 DatahubClientputRecordsByShard 在类中 DatahubClientJsonImplprojectName - The name of the projecttopicName - The name of the topic.shardId - The shard id.records - Records list to written. Each RecordEntity contains RecordData field, which can indicate BLOB data or TUPLE data.public GetRecordsResult getRecords(String projectName, String topicName, String shardId, String cursor, int limit)
DatahubClient
The cursor parameter used to specify the start position to read.
If there is no records bound with the cursor, GetDataRecords returns an empty list.
getRecords 在接口中 DatahubClientgetRecords 在类中 DatahubClientJsonImplprojectName - The name of the project.topicName - The name of the topic.shardId - The id of the shard.cursor - The start cursor used to read data.limit - Max record size to read.GetRecordsResult Records information read.public GetRecordsResult getRecords(String projectName, String topicName, String shardId, RecordSchema schema, String cursor, int limit)
DatahubClient
The cursor parameter used to specify the start position to read.
If there is no records bound with the cursor, GetDataRecords returns an empty list.
getRecords 在接口中 DatahubClientgetRecords 在类中 DatahubClientJsonImplprojectName - The name of the project.topicName - The name of the topic.shardId - The id of the shard.schema - If you read TUPLE records, you should pass RecordSchema as a parameter.cursor - The start cursor used to read data.limit - Max record size to read.GetRecordsResult Records information read.Copyright © 2021 Alibaba Cloud Computing. All rights reserved.