|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DataType.Name>
com.datastax.driver.core.DataType.Name
public static enum DataType.Name
The CQL type name.
Enum Constant Summary | |
---|---|
ASCII
|
|
BIGINT
|
|
BLOB
|
|
BOOLEAN
|
|
COUNTER
|
|
CUSTOM
|
|
DECIMAL
|
|
DOUBLE
|
|
FLOAT
|
|
INET
|
|
INT
|
|
LIST
|
|
MAP
|
|
SET
|
|
TEXT
|
|
TIMESTAMP
|
|
TIMEUUID
|
|
UUID
|
|
VARCHAR
|
|
VARINT
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
NullPointerException
- 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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |