public class KafkaTridentSpoutTopicPartition extends Object implements ISpoutPartition, Serializable
ISpoutPartition
that wraps TopicPartition
information
Constructor and Description |
---|
KafkaTridentSpoutTopicPartition(String topic,
int partition) |
KafkaTridentSpoutTopicPartition(org.apache.kafka.common.TopicPartition topicPartition) |
Modifier and Type | Method and 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() |
public KafkaTridentSpoutTopicPartition(String topic, int partition)
public KafkaTridentSpoutTopicPartition(org.apache.kafka.common.TopicPartition topicPartition)
public org.apache.kafka.common.TopicPartition getTopicPartition()
public String getId()
ISpoutPartition
This is used as a Zookeeper node path for storing metadata.
getId
in interface ISpoutPartition
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.