public class Checkpoint extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONSUMER_GROUP_ID_KEY |
static String |
DOWNSTREAM_OFFSET_KEY |
static org.apache.kafka.common.protocol.types.Schema |
HEADER_SCHEMA |
static org.apache.kafka.common.protocol.types.Schema |
KEY_SCHEMA |
static String |
METADATA_KEY |
static String |
PARTITION_KEY |
static String |
TOPIC_KEY |
static String |
UPSTREAM_OFFSET_KEY |
static org.apache.kafka.common.protocol.types.Schema |
VALUE_SCHEMA_V0 |
static short |
VERSION |
static String |
VERSION_KEY |
Constructor and Description |
---|
Checkpoint(String consumerGroupId,
TopicPartition topicPartition,
long upstreamOffset,
long downstreamOffset,
String metadata) |
Modifier and Type | Method and Description |
---|---|
String |
consumerGroupId() |
static Checkpoint |
deserializeRecord(ConsumerRecord<byte[],byte[]> record) |
long |
downstreamOffset() |
String |
metadata() |
OffsetAndMetadata |
offsetAndMetadata() |
TopicPartition |
topicPartition() |
String |
toString() |
long |
upstreamOffset() |
public static final String TOPIC_KEY
public static final String PARTITION_KEY
public static final String CONSUMER_GROUP_ID_KEY
public static final String UPSTREAM_OFFSET_KEY
public static final String DOWNSTREAM_OFFSET_KEY
public static final String METADATA_KEY
public static final String VERSION_KEY
public static final short VERSION
public static final org.apache.kafka.common.protocol.types.Schema VALUE_SCHEMA_V0
public static final org.apache.kafka.common.protocol.types.Schema KEY_SCHEMA
public static final org.apache.kafka.common.protocol.types.Schema HEADER_SCHEMA
public Checkpoint(String consumerGroupId, TopicPartition topicPartition, long upstreamOffset, long downstreamOffset, String metadata)
public String consumerGroupId()
public TopicPartition topicPartition()
public long upstreamOffset()
public long downstreamOffset()
public String metadata()
public OffsetAndMetadata offsetAndMetadata()
public static Checkpoint deserializeRecord(ConsumerRecord<byte[],byte[]> record)