public class DatahubClientPbImpl extends DatahubClientJsonImpl
| 构造器和说明 |
|---|
DatahubClientPbImpl(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.
|
PutRecordsResult |
putRecords(String projectName,
String topicName,
List<RecordEntry> records)
Write data records into a DataHub topic.
|
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, 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 DatahubClientPbImpl(String endpoint, Account account, HttpConfig httpConfig, String userAgent)
public PutRecordsResult putRecords(String projectName, String topicName, List<RecordEntry> records)
DatahubClient
The response includes unsuccessfully processed records. Datahub attempts to process
all records in each record. A single record failure does not
stop the processing of subsequent records.
You can get the failed records which are not written. PutErrorEntry include
ErrorCode and ErrorMessage for each failed record.
We recommended you to use putRecordsByShard method to write data.
putRecords 在接口中 DatahubClientputRecords 在类中 DatahubClientJsonImplprojectName - The name of the project.topicName - The name of the topic.records - Records list to written. Each RecordEntity contains RecordData field, which can indicate BLOB data or TUPLE data.PutRecordsResult The information of the failed records.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.