public final class RecordMetadata extends Object
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_PARTITION
Partition value for record without partition assigned
|
Constructor and Description |
---|
RecordMetadata(TopicPartition topicPartition,
long baseOffset,
long relativeOffset)
Deprecated.
|
RecordMetadata(TopicPartition topicPartition,
long baseOffset,
long relativeOffset,
long timestamp,
long checksum,
int serializedKeySize,
int serializedValueSize) |
Modifier and Type | Method and Description |
---|---|
long |
checksum()
The checksum (CRC32) of the record.
|
long |
offset()
The offset of the record in the topic/partition.
|
int |
partition()
The partition the record was sent to
|
int |
serializedKeySize()
The size of the serialized, uncompressed key in bytes.
|
int |
serializedValueSize()
The size of the serialized, uncompressed value in bytes.
|
long |
timestamp()
The timestamp of the record in the topic/partition.
|
String |
topic()
The topic the record was appended to
|
String |
toString() |
public static final int UNKNOWN_PARTITION
@Deprecated public RecordMetadata(TopicPartition topicPartition, long baseOffset, long relativeOffset)
public RecordMetadata(TopicPartition topicPartition, long baseOffset, long relativeOffset, long timestamp, long checksum, int serializedKeySize, int serializedValueSize)
public long offset()
public long timestamp()
public long checksum()
public int serializedKeySize()
public int serializedValueSize()
public String topic()
public int partition()