public class KafkaRecord<K,V>
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
KafkaRecord(java.lang.String topic,
int partition,
long offset,
long timestamp,
KafkaTimestampType timestampType,
org.apache.kafka.common.header.Headers headers,
K key,
V value) |
KafkaRecord(java.lang.String topic,
int partition,
long offset,
long timestamp,
KafkaTimestampType timestampType,
org.apache.kafka.common.header.Headers headers,
KV<K,V> kv) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
org.apache.kafka.common.header.Headers |
getHeaders() |
KV<K,V> |
getKV() |
long |
getOffset() |
int |
getPartition() |
long |
getTimestamp() |
KafkaTimestampType |
getTimestampType() |
java.lang.String |
getTopic() |
int |
hashCode() |
public KafkaRecord(java.lang.String topic, int partition, long offset, long timestamp, KafkaTimestampType timestampType, @Nullable org.apache.kafka.common.header.Headers headers, K key, V value)
public KafkaRecord(java.lang.String topic, int partition, long offset, long timestamp, KafkaTimestampType timestampType, @Nullable org.apache.kafka.common.header.Headers headers, KV<K,V> kv)
public java.lang.String getTopic()
public int getPartition()
public long getOffset()
public org.apache.kafka.common.header.Headers getHeaders()
public long getTimestamp()
public KafkaTimestampType getTimestampType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object