storm.kafka.trident
Class GlobalPartitionInformation
java.lang.Object
storm.kafka.trident.GlobalPartitionInformation
- All Implemented Interfaces:
- Serializable, Iterable<Partition>
public class GlobalPartitionInformation
- extends Object
- implements Iterable<Partition>, Serializable
- See Also:
- Serialized Form
GlobalPartitionInformation
public GlobalPartitionInformation()
addPartition
public void addPartition(int partitionId,
Broker broker)
toString
public String toString()
- Overrides:
toString
in class Object
getBrokerFor
public Broker getBrokerFor(Integer partitionId)
getOrderedPartitions
public List<Partition> getOrderedPartitions()
iterator
public Iterator<Partition> iterator()
- Specified by:
iterator
in interface Iterable<Partition>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.