Package org.apache.kafka.connect.mirror
Class Checkpoint
java.lang.Object
org.apache.kafka.connect.mirror.Checkpoint
Checkpoint records emitted from MirrorCheckpointConnector. Encodes remote consumer group state.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final org.apache.kafka.common.protocol.types.Schema
static final org.apache.kafka.common.protocol.types.Schema
static final String
static final String
static final String
static final String
static final org.apache.kafka.common.protocol.types.Schema
static final short
static final String
-
Constructor Summary
ConstructorDescriptionCheckpoint
(String consumerGroupId, TopicPartition topicPartition, long upstreamOffset, long downstreamOffset, String metadata) -
Method Summary
Modifier and TypeMethodDescriptionstatic Checkpoint
deserializeRecord
(ConsumerRecord<byte[], byte[]> record) long
boolean
int
hashCode()
metadata()
toString()
long
-
Field Details
-
TOPIC_KEY
- See Also:
-
PARTITION_KEY
- See Also:
-
CONSUMER_GROUP_ID_KEY
- See Also:
-
UPSTREAM_OFFSET_KEY
- See Also:
-
DOWNSTREAM_OFFSET_KEY
- See Also:
-
METADATA_KEY
- See Also:
-
VERSION_KEY
- See Also:
-
VERSION
public static final short VERSION- See Also:
-
VALUE_SCHEMA_V0
public static final org.apache.kafka.common.protocol.types.Schema VALUE_SCHEMA_V0 -
KEY_SCHEMA
public static final org.apache.kafka.common.protocol.types.Schema KEY_SCHEMA -
HEADER_SCHEMA
public static final org.apache.kafka.common.protocol.types.Schema HEADER_SCHEMA
-
-
Constructor Details
-
Checkpoint
public Checkpoint(String consumerGroupId, TopicPartition topicPartition, long upstreamOffset, long downstreamOffset, String metadata)
-
-
Method Details
-
consumerGroupId
-
topicPartition
-
upstreamOffset
public long upstreamOffset() -
downstreamOffset
public long downstreamOffset() -
metadata
-
offsetAndMetadata
-
toString
-
deserializeRecord
-
equals
-
hashCode
public int hashCode()
-