public class Partition extends java.lang.Object implements ISpoutPartition, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
Broker |
host |
int |
partition |
java.lang.String |
topic |
Constructor and Description |
---|
Partition(Broker host,
java.lang.String topic,
int partition) |
Partition(Broker host,
java.lang.String topic,
int partition,
java.lang.Boolean bUseTopicNameForPartitionPathId) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId() |
int |
hashCode() |
java.lang.String |
toString() |
public Broker host
public int partition
public java.lang.String topic
public Partition(Broker host, java.lang.String topic, int partition)
public Partition(Broker host, java.lang.String topic, int partition, java.lang.Boolean bUseTopicNameForPartitionPathId)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getId()
getId
in interface ISpoutPartition