Package org.apache.kafka.connect.mirror
Class Checkpoint
java.lang.Object
org.apache.kafka.connect.mirror.Checkpoint
public class Checkpoint extends Object
Checkpoint records emitted from MirrorCheckpointConnector. Encodes remote consumer group state.
-
Field Summary
Fields Modifier and Type Field Description static StringCONSUMER_GROUP_ID_KEYstatic StringDOWNSTREAM_OFFSET_KEYstatic org.apache.kafka.common.protocol.types.SchemaHEADER_SCHEMAstatic org.apache.kafka.common.protocol.types.SchemaKEY_SCHEMAstatic StringMETADATA_KEYstatic StringPARTITION_KEYstatic StringTOPIC_KEYstatic StringUPSTREAM_OFFSET_KEYstatic org.apache.kafka.common.protocol.types.SchemaVALUE_SCHEMA_V0static shortVERSIONstatic StringVERSION_KEY -
Constructor Summary
Constructors Constructor Description Checkpoint(String consumerGroupId, TopicPartition topicPartition, long upstreamOffset, long downstreamOffset, String metadata) -
Method Summary
Modifier and Type Method Description StringconsumerGroupId()static CheckpointdeserializeRecord(ConsumerRecord<byte[],byte[]> record)longdownstreamOffset()Stringmetadata()OffsetAndMetadataoffsetAndMetadata()TopicPartitiontopicPartition()StringtoString()longupstreamOffset()
-
Field Details
-
TOPIC_KEY
- See Also:
- Constant Field Values
-
PARTITION_KEY
- See Also:
- Constant Field Values
-
CONSUMER_GROUP_ID_KEY
- See Also:
- Constant Field Values
-
UPSTREAM_OFFSET_KEY
- See Also:
- Constant Field Values
-
DOWNSTREAM_OFFSET_KEY
- See Also:
- Constant Field Values
-
METADATA_KEY
- See Also:
- Constant Field Values
-
VERSION_KEY
- See Also:
- Constant Field Values
-
VERSION
public static final short VERSION- See Also:
- Constant Field Values
-
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