public enum Ordering extends Enum<Ordering> implements Comparator<Ordering>
Comparator
in that ASCENDING
is
ordered before DESCENDING
.Enum Constant and Description |
---|
ASCENDING
Ascending Cassandra column ordering.
|
DESCENDING
Descending Cassandra column ordering.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Ordering l,
Ordering r) |
String |
cql()
Returns the CQL keyword of this
Ordering . |
static Ordering |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ordering[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
equals
public static final Ordering ASCENDING
public static final Ordering DESCENDING
public static Ordering[] values()
for (Ordering c : Ordering.values()) System.out.println(c);
public static Ordering valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int compare(Ordering l, Ordering r)
compare
in interface Comparator<Ordering>
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.