Package org.apache.kafka.connect.mirror
Class Checkpoint
java.lang.Object
org.apache.kafka.connect.mirror.Checkpoint
Checkpoint records emitted by MirrorCheckpointConnector.
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionCheckpoint
(String consumerGroupId, org.apache.kafka.common.TopicPartition topicPartition, long upstreamOffset, long downstreamOffset, String metadata) -
Method Summary
Modifier and TypeMethodDescriptionstatic Checkpoint
deserializeRecord
(org.apache.kafka.clients.consumer.ConsumerRecord<byte[], byte[]> record) long
boolean
int
hashCode()
metadata()
org.apache.kafka.clients.consumer.OffsetAndMetadata
org.apache.kafka.common.TopicPartition
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
-
-
Method Details
-
consumerGroupId
-
topicPartition
public org.apache.kafka.common.TopicPartition topicPartition() -
upstreamOffset
public long upstreamOffset() -
downstreamOffset
public long downstreamOffset() -
metadata
-
offsetAndMetadata
public org.apache.kafka.clients.consumer.OffsetAndMetadata offsetAndMetadata() -
toString
-
deserializeRecord
public static Checkpoint deserializeRecord(org.apache.kafka.clients.consumer.ConsumerRecord<byte[], byte[]> record) -
equals
-
hashCode
public int hashCode()
-