public class ClusterByPartitions extends Object implements Iterable<ClusterByPartition>
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 and Description |
|---|
ClusterByPartitions(List<ClusterByPartition> ranges) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allAbutting()
Whether this list of partitions is all abutting, meaning: each partition's start is equal to the previous
partition's end.
|
boolean |
equals(Object o) |
ClusterByPartition |
get(int i) |
int |
hashCode() |
Iterator<ClusterByPartition> |
iterator() |
static ClusterByPartitions |
oneUniversalPartition() |
List<ClusterByPartition> |
ranges() |
int |
size() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ClusterByPartitions(List<ClusterByPartition> ranges)
public static ClusterByPartitions oneUniversalPartition()
public boolean allAbutting()
public ClusterByPartition get(int i)
public int size()
public List<ClusterByPartition> ranges()
public Iterator<ClusterByPartition> iterator()
iterator in interface Iterable<ClusterByPartition>Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.