Class PartitionManager.Interval

  • All Implemented Interfaces:
    Iterable<Partition>
    Enclosing class:
    PartitionManager

    public static class PartitionManager.Interval
    extends TimeInterval
    implements Iterable<Partition>
    For tables partitioned by time this holds all the partitions for a given time interval. For example if YYYY schema is used, this holds all the partitions for one year.

    For tables not partitioned by time, this holds all the partitions (by value) for the table and there is only one instance of this class for that table.

    Practically it keeps a value -> partition map.

    • Constructor Detail

      • Interval

        public Interval​(long start,
                        long stop)
      • Interval

        public Interval()
        Constructs an interval without start or stop (covers all time)