Package org.apache.druid.frame.key
Class ClusterByPartitions
java.lang.Object
org.apache.druid.frame.key.ClusterByPartitions
- All Implemented Interfaces:
Iterable<ClusterByPartition>
Holder object for a set of
ClusterByPartition. There are no preconditions put upon the partitions, except
that there is at least one of them.
In particular, they are not required to abut each other or to be non-overlapping. Use allAbutting() to
check if this particular list of partitions is in fact all abutting (and, therefore, also non-overlapping).-
Constructor Details
-
ClusterByPartitions
-
-
Method Details
-
oneUniversalPartition
-
allAbutting
public boolean allAbutting()Whether this list of partitions is all abutting, meaning: each partition's start is equal to the previous partition's end. Note that the start of the first partition, and the end of the last partition, may or may not be unbounded. So this list of partitions may not cover the entire space even if they are all abutting. -
get
-
size
public int size() -
ranges
-
iterator
- Specified by:
iteratorin interfaceIterable<ClusterByPartition>
-
equals
-
hashCode
public int hashCode() -
toString
-