Class KafkaTridentSpoutTopicPartition
java.lang.Object
org.apache.storm.kafka.spout.trident.KafkaTridentSpoutTopicPartition
- All Implemented Interfaces:
Serializable
,ISpoutPartition
public class KafkaTridentSpoutTopicPartition
extends Object
implements ISpoutPartition, Serializable
ISpoutPartition
that wraps TopicPartition
information.- See Also:
-
Constructor Summary
ConstructorDescriptionKafkaTridentSpoutTopicPartition
(String topic, int partition) KafkaTridentSpoutTopicPartition
(org.apache.kafka.common.TopicPartition topicPartition) -
Method Summary
-
Constructor Details
-
KafkaTridentSpoutTopicPartition
-
KafkaTridentSpoutTopicPartition
public KafkaTridentSpoutTopicPartition(org.apache.kafka.common.TopicPartition topicPartition)
-
-
Method Details
-
getTopicPartition
public org.apache.kafka.common.TopicPartition getTopicPartition() -
getId
Description copied from interface:ISpoutPartition
This is used as a Zookeeper node path for storing metadata.- Specified by:
getId
in interfaceISpoutPartition
-
equals
-
hashCode
public int hashCode() -
toString
-