public enum DataTypeEnum extends Enum<DataTypeEnum>
| Enum Constant and Description |
|---|
ASCII |
BIGINT |
BLOB |
BOOLEAN |
COUNTER |
CUSTOM |
DATE |
DECIMAL |
DOUBLE |
FLOAT |
INET |
INT |
LIST |
MAP |
SET |
SMALLINT |
TEXT |
TIME |
TIMESTAMP |
TIMEUUID |
TINYINT |
TUPLE |
UDT |
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 DataTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataTypeEnum ASCII
public static final DataTypeEnum BIGINT
public static final DataTypeEnum BLOB
public static final DataTypeEnum BOOLEAN
public static final DataTypeEnum COUNTER
public static final DataTypeEnum DECIMAL
public static final DataTypeEnum DOUBLE
public static final DataTypeEnum FLOAT
public static final DataTypeEnum INET
public static final DataTypeEnum INT
public static final DataTypeEnum TEXT
public static final DataTypeEnum TIMESTAMP
public static final DataTypeEnum UUID
public static final DataTypeEnum VARCHAR
public static final DataTypeEnum VARINT
public static final DataTypeEnum TIMEUUID
public static final DataTypeEnum LIST
public static final DataTypeEnum SET
public static final DataTypeEnum MAP
public static final DataTypeEnum UDT
public static final DataTypeEnum TUPLE
public static final DataTypeEnum CUSTOM
public static final DataTypeEnum SMALLINT
public static final DataTypeEnum TINYINT
public static final DataTypeEnum DATE
public static final DataTypeEnum TIME
public static DataTypeEnum[] values()
for (DataTypeEnum c : DataTypeEnum.values()) System.out.println(c);
public static DataTypeEnum 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 |
| UDT | UDTValue |
| TUPLE | TupleValue |
| VARCHAR | String |
| VARINT | BigInteger |
| TIMEUUID | UUID |
public String toString()
toString in class Enum<DataTypeEnum>Copyright © 2015–2016. All rights reserved.