public enum CassandraType extends Enum<CassandraType> implements ColumnType
Enum Constant and Description |
---|
ASCII |
BIGINT |
BLOB |
BOOLEAN |
COUNTER |
CUSTOM |
DATE |
DECIMAL |
DOUBLE |
DURATION |
FLOAT |
INET |
INT |
LIST |
MAP |
SET |
SMALLINT |
TEXT |
TIME |
TIMESTAMP |
TIMEUUID |
TINYINT |
TUPLE |
UDT |
UUID |
VARCHAR |
VARINT |
Modifier and Type | Method and Description |
---|---|
boolean |
isBinary() |
boolean |
isBlob() |
boolean |
isClob() |
boolean |
isDate() |
boolean |
isTime() |
boolean |
isTimestamp() |
int |
value() |
static ColumnType |
valueOf(int typeValue) |
static CassandraType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CassandraType[] |
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
name
public static final CassandraType CUSTOM
public static final CassandraType ASCII
public static final CassandraType BIGINT
public static final CassandraType BLOB
public static final CassandraType BOOLEAN
public static final CassandraType COUNTER
public static final CassandraType DECIMAL
public static final CassandraType DOUBLE
public static final CassandraType FLOAT
public static final CassandraType INT
public static final CassandraType TEXT
public static final CassandraType TIMESTAMP
public static final CassandraType UUID
public static final CassandraType VARCHAR
public static final CassandraType VARINT
public static final CassandraType TIMEUUID
public static final CassandraType INET
public static final CassandraType DATE
public static final CassandraType TIME
public static final CassandraType SMALLINT
public static final CassandraType TINYINT
public static final CassandraType DURATION
public static final CassandraType LIST
public static final CassandraType MAP
public static final CassandraType SET
public static final CassandraType UDT
public static final CassandraType TUPLE
public static CassandraType[] values()
for (CassandraType c : CassandraType.values()) System.out.println(c);
public static CassandraType 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 value()
value
in interface ColumnType
public boolean isBinary()
isBinary
in interface ColumnType
public boolean isBlob()
isBlob
in interface ColumnType
public boolean isClob()
isClob
in interface ColumnType
public boolean isDate()
isDate
in interface ColumnType
public boolean isTimestamp()
isTimestamp
in interface ColumnType
public boolean isTime()
isTime
in interface ColumnType
public static ColumnType valueOf(int typeValue)
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.