public static enum DataType.Name extends Enum<DataType.Name>
Enum Constant and Description |
---|
ASCII |
BIGINT |
BLOB |
BOOLEAN |
COUNTER |
CUSTOM |
DECIMAL |
DOUBLE |
FLOAT |
INET |
INT |
LIST |
MAP |
SET |
TEXT |
TIMESTAMP |
TIMEUUID |
UUID |
VARCHAR |
VARINT |
Modifier and Type | Method and Description |
---|---|
Class<?> |
asJavaClass()
Returns the Java Class corresponding to this CQL type name.
|
boolean |
isCollection()
Returns whether this data type name represent the name of a collection type
that is a list, set or map.
|
String |
toString() |
static DataType.Name |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType.Name[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType.Name ASCII
public static final DataType.Name BIGINT
public static final DataType.Name BLOB
public static final DataType.Name BOOLEAN
public static final DataType.Name COUNTER
public static final DataType.Name DECIMAL
public static final DataType.Name DOUBLE
public static final DataType.Name FLOAT
public static final DataType.Name INET
public static final DataType.Name INT
public static final DataType.Name TEXT
public static final DataType.Name TIMESTAMP
public static final DataType.Name UUID
public static final DataType.Name VARCHAR
public static final DataType.Name VARINT
public static final DataType.Name TIMEUUID
public static final DataType.Name LIST
public static final DataType.Name SET
public static final DataType.Name MAP
public static final DataType.Name CUSTOM
public static DataType.Name[] values()
for (DataType.Name c : DataType.Name.values()) System.out.println(c);
public static DataType.Name 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 boolean isCollection()
public Class<?> asJavaClass()
DataType (CQL) | Java Class |
---|---|
ASCII | String |
BIGINT | Long |
BLOB | ByteBuffer |
BOOLEAN | Boolean |
COUNTER | Long |
CUSTOM | ByteBuffer |
DECIMAL | BigDecimal |
DOUBLE | Double |
FLOAT | Float |
INET | InetAddress |
INT | Integer |
LIST | List |
MAP | Map |
SET | Set |
TEXT | String |
TIMESTAMP | Date |
UUID | UUID |
VARCHAR | String |
VARINT | BigInteger |
TIMEUUID | UUID |
public String toString()
toString
in class Enum<DataType.Name>
Copyright © 2014. All Rights Reserved.