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 wrapsTopicPartition
information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KafkaTridentSpoutTopicPartition(String topic, int partition)
KafkaTridentSpoutTopicPartition(org.apache.kafka.common.TopicPartition topicPartition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getId()
This is used as a Zookeeper node path for storing metadata.org.apache.kafka.common.TopicPartition
getTopicPartition()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
KafkaTridentSpoutTopicPartition
public KafkaTridentSpoutTopicPartition(String topic, int partition)
-
KafkaTridentSpoutTopicPartition
public KafkaTridentSpoutTopicPartition(org.apache.kafka.common.TopicPartition topicPartition)
-
-
Method Detail
-
getTopicPartition
public org.apache.kafka.common.TopicPartition getTopicPartition()
-
getId
public String getId()
Description copied from interface:ISpoutPartition
This is used as a Zookeeper node path for storing metadata.- Specified by:
getId
in interfaceISpoutPartition
-
-