Package com.linkedin.venice.meta
Class PartitionAssignment
- java.lang.Object
-
- com.linkedin.venice.meta.PartitionAssignment
-
public class PartitionAssignment extends java.lang.Object
This class represent the assignments of one resource including all of assigned partitions and expected number of partitions.
-
-
Constructor Summary
Constructors Constructor Description PartitionAssignment(java.lang.String topic, int numberOfPartition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPartition(Partition partition)
boolean
equals(java.lang.Object obj)
java.util.Collection<Partition>
getAllPartitions()
int
getAssignedNumberOfPartitions()
int
getExpectedNumberOfPartitions()
Partition
getPartition(int partitionId)
java.lang.String
getTopic()
int
hashCode()
boolean
isMissingAssignedPartitions()
java.lang.String
toString()
-
-
-
Method Detail
-
getPartition
public Partition getPartition(int partitionId)
-
addPartition
public void addPartition(Partition partition)
-
getAllPartitions
public java.util.Collection<Partition> getAllPartitions()
-
getExpectedNumberOfPartitions
public int getExpectedNumberOfPartitions()
-
getAssignedNumberOfPartitions
public int getAssignedNumberOfPartitions()
-
isMissingAssignedPartitions
public boolean isMissingAssignedPartitions()
-
getTopic
public java.lang.String getTopic()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-