public enum PrimaryKeyType extends Enum<PrimaryKeyType> implements Comparator<PrimaryKeyType>
Comparator
in that
PARTITIONED
is ordered before CLUSTERED
.Enum Constant and Description |
---|
CLUSTERED
Used for a column that is clustered key.
|
PARTITIONED
Used for a column that is part of the partition key.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(PrimaryKeyType l,
PrimaryKeyType r) |
static PrimaryKeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimaryKeyType[] |
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 PrimaryKeyType PARTITIONED
public static final PrimaryKeyType CLUSTERED
public static PrimaryKeyType[] values()
for (PrimaryKeyType c : PrimaryKeyType.values()) System.out.println(c);
public static PrimaryKeyType 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(PrimaryKeyType l, PrimaryKeyType r)
compare
in interface Comparator<PrimaryKeyType>
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.