public class KafkaSpoutMessageId extends Object implements Serializable
Constructor and Description |
---|
KafkaSpoutMessageId(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> consumerRecord) |
KafkaSpoutMessageId(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> consumerRecord,
boolean nullTuple) |
KafkaSpoutMessageId(org.apache.kafka.common.TopicPartition topicPart,
long offset) |
KafkaSpoutMessageId(org.apache.kafka.common.TopicPartition topicPart,
long offset,
boolean nullTuple)
Creates a new KafkaSpoutMessageId.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
org.apache.kafka.common.TopicPartition |
getTopicPartition() |
int |
hashCode() |
void |
incrementNumFails() |
boolean |
isNullTuple() |
int |
numFails() |
long |
offset() |
int |
partition() |
void |
setNullTuple(boolean nullTuple) |
String |
topic() |
String |
toString() |
public KafkaSpoutMessageId(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> consumerRecord)
public KafkaSpoutMessageId(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> consumerRecord, boolean nullTuple)
public KafkaSpoutMessageId(org.apache.kafka.common.TopicPartition topicPart, long offset)
public KafkaSpoutMessageId(org.apache.kafka.common.TopicPartition topicPart, long offset, boolean nullTuple)
Creates a new KafkaSpoutMessageId.
topicPart
- The topic partition this message belongs tooffset
- The offset of this messagenullTuple
- True if this message is being skipped as a null tuplepublic int partition()
public String topic()
public long offset()
public int numFails()
public void incrementNumFails()
public org.apache.kafka.common.TopicPartition getTopicPartition()
public boolean isNullTuple()
public void setNullTuple(boolean nullTuple)
Copyright © 2022 The Apache Software Foundation. All rights reserved.