Class PartitionAssignment

java.lang.Object
com.linkedin.venice.meta.PartitionAssignment

public class PartitionAssignment extends Object
This class represent the assignments of one resource including all of assigned partitions and expected number of partitions.
  • Constructor Details

    • PartitionAssignment

      public PartitionAssignment(String topic, int numberOfPartition)
  • Method Details

    • getPartition

      public Partition getPartition(int partitionId)
    • addPartition

      public void addPartition(Partition partition)
    • getAllPartitions

      public Collection<Partition> getAllPartitions()
    • getExpectedNumberOfPartitions

      public int getExpectedNumberOfPartitions()
    • getAssignedNumberOfPartitions

      public int getAssignedNumberOfPartitions()
    • isMissingAssignedPartitions

      public boolean isMissingAssignedPartitions()
    • getTopic

      public String getTopic()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object