public class KafkaRecord<K,V>
extends java.lang.Object
Constructor and Description |
---|
KafkaRecord(java.lang.String topic,
int partition,
long offset,
long timestamp,
KafkaTimestampType timestampType,
@Nullable Headers headers,
K key,
V value) |
KafkaRecord(java.lang.String topic,
int partition,
long offset,
long timestamp,
KafkaTimestampType timestampType,
@Nullable Headers headers,
KV<K,V> kv) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object obj) |
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 Headers headers, K key, V value)
public KafkaRecord(java.lang.String topic, int partition, long offset, long timestamp, KafkaTimestampType timestampType, @Nullable Headers headers, KV<K,V> kv)
public java.lang.String getTopic()
public int getPartition()
public long getOffset()
public Headers getHeaders()
public long getTimestamp()
public KafkaTimestampType getTimestampType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object