com.aliyun.datahub.model.GetRecordsRequest Maven / Gradle / Ivy
package com.aliyun.datahub.model;
import com.aliyun.datahub.common.data.RecordSchema;
/**
*
* Represents the input for GetRecords.
*
*/
public class GetRecordsRequest {
private String projectName;
private String topicName;
private String shardId;
/**
*
* The position in the shard from which you want to start sequentially
* reading data records.
*
*/
private String cursor;
/**
*
* The maximum number of records to return.
*
*/
private int limit;
private RecordSchema schema;
/**
*
* constructor
*
*
* @param projectName The name of project.
* @param topicName The name of topic.
* @param shardId The shard ID of shard to get the cursor for.
* @param cursor The position in the shard from which you want to start sequentially
* reading data records.
*/
public GetRecordsRequest(String projectName, String topicName, String shardId, String cursor, int limit) {
this.projectName = projectName;
this.topicName = topicName;
this.shardId = shardId;
this.cursor = cursor;
this.limit = limit;
}
public void setSchema(RecordSchema schema) {
this.schema = schema;
}
public String getProjectName() {
return projectName;
}
public String getTopicName() {
return topicName;
}
public String getShardId() {
return shardId;
}
public String getCursor() {
return cursor;
}
public int getLimit() {
return limit;
}
public RecordSchema getSchema() {
return schema;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy