public static enum ClusteringPrefix.Kind extends java.lang.Enum<ClusteringPrefix.Kind>
STATIC_CLUSTERING
is only implemented by Clustering.STATIC_CLUSTERING
and CLUSTERING
is
implemented by the Clustering
class. The rest is used by Slice.Bound
and RangeTombstone.Bound
.Enum Constant and Description |
---|
CLUSTERING |
EXCL_END_BOUND |
EXCL_END_INCL_START_BOUNDARY |
EXCL_START_BOUND |
INCL_END_BOUND |
INCL_END_EXCL_START_BOUNDARY |
INCL_START_BOUND |
STATIC_CLUSTERING |
Modifier and Type | Field and Description |
---|---|
int |
comparedToClustering
Return the comparison of this kind to CLUSTERING.
|
Modifier and Type | Method and Description |
---|---|
ClusteringPrefix.Kind |
closeBoundOfBoundary(boolean reversed) |
static int |
compare(ClusteringPrefix.Kind k1,
ClusteringPrefix.Kind k2)
Compares the 2 provided kind.
|
ClusteringPrefix.Kind |
invert()
Returns the inverse of the current kind.
|
boolean |
isBound() |
boolean |
isBoundary() |
boolean |
isClose(boolean reversed) |
boolean |
isEnd() |
boolean |
isOpen(boolean reversed) |
boolean |
isStart() |
ClusteringPrefix.Kind |
openBoundOfBoundary(boolean reversed) |
static ClusteringPrefix.Kind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClusteringPrefix.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusteringPrefix.Kind EXCL_END_BOUND
public static final ClusteringPrefix.Kind INCL_START_BOUND
public static final ClusteringPrefix.Kind EXCL_END_INCL_START_BOUNDARY
public static final ClusteringPrefix.Kind STATIC_CLUSTERING
public static final ClusteringPrefix.Kind CLUSTERING
public static final ClusteringPrefix.Kind INCL_END_EXCL_START_BOUNDARY
public static final ClusteringPrefix.Kind INCL_END_BOUND
public static final ClusteringPrefix.Kind EXCL_START_BOUND
public final int comparedToClustering
public static ClusteringPrefix.Kind[] values()
for (ClusteringPrefix.Kind c : ClusteringPrefix.Kind.values()) System.out.println(c);
public static ClusteringPrefix.Kind valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static int compare(ClusteringPrefix.Kind k1, ClusteringPrefix.Kind k2)
Note: this should be used instead of Enum.compareTo(E)
when comparing clustering prefixes. We do
not override that latter method because it is final for an enum.
public ClusteringPrefix.Kind invert()
This invert both start into end (and vice-versa) and inclusive into exclusive (and vice-versa).
public boolean isBound()
public boolean isBoundary()
public boolean isStart()
public boolean isEnd()
public boolean isOpen(boolean reversed)
public boolean isClose(boolean reversed)
public ClusteringPrefix.Kind closeBoundOfBoundary(boolean reversed)
public ClusteringPrefix.Kind openBoundOfBoundary(boolean reversed)
Copyright © 2015 The Apache Software Foundation