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,
K key,
V value) |
KafkaRecord(java.lang.String topic,
int partition,
long offset,
long timestamp,
KafkaTimestampType timestampType,
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() |
KafkaTimestampType |
getTimestampType() |
java.lang.String |
getTopic() |
int |
hashCode() |
public KafkaRecord(java.lang.String topic, int partition, long offset, long timestamp, KafkaTimestampType timestampType, K key, V value)
public KafkaRecord(java.lang.String topic, int partition, long offset, long timestamp, KafkaTimestampType timestampType, KV<K,V> kv)
public java.lang.String getTopic()
public int getPartition()
public long getOffset()
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