@InterfaceStability.Unstable public class SinkRecord extends ConnectRecord
ConnectRecord
that has been read from Kafka and includes the kafkaOffset of
the record in the Kafka topic-partition in addition to the standard fields. This information
should be used by the SinkTask to coordinate kafkaOffset commits.Constructor and Description |
---|
SinkRecord(String topic,
int partition,
Schema keySchema,
Object key,
Schema valueSchema,
Object value,
long kafkaOffset) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
long |
kafkaOffset() |
String |
toString() |
kafkaPartition, key, keySchema, topic, value, valueSchema
public long kafkaOffset()
public boolean equals(Object o)
equals
in class ConnectRecord
public int hashCode()
hashCode
in class ConnectRecord
public String toString()
toString
in class ConnectRecord