Class PartitionId

    • Constructor Detail

      • PartitionId

        public PartitionId​(int id)
        Creates a partition identifier from an integer.
        Parameters:
        id - input integer
    • Method Detail

      • from

        public static PartitionId from​(int id)
        Creates a partition identifier from an integer.
        Parameters:
        id - input integer
        Returns:
        partition identification
      • asInt

        public int asInt()
        Returns the partition identifier as an integer.
        Returns:
        number
      • compareTo

        public int compareTo​(PartitionId that)
        Specified by:
        compareTo in interface java.lang.Comparable<PartitionId>