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