public enum CassandraType extends Enum<CassandraType> implements FullCassandraType
| Enum Constant and Description |
|---|
ASCII |
BIGINT |
BLOB |
BOOLEAN |
COUNTER |
CUSTOM |
DATE |
DECIMAL |
DOUBLE |
FLOAT |
INET |
INT |
LIST |
MAP |
SET |
SMALLINT |
TEXT |
TIMESTAMP |
TIMEUUID |
TINYINT |
UUID |
VARCHAR |
VARINT |
| Modifier and Type | Method and Description |
|---|---|
CassandraType |
getCassandraType() |
static CassandraType |
getCassandraType(com.datastax.driver.core.DataType.Name name) |
static NullableValue |
getColumnValue(com.datastax.driver.core.Row row,
int position,
CassandraType cassandraType,
List<CassandraType> typeArguments) |
static NullableValue |
getColumnValue(com.datastax.driver.core.Row row,
int position,
FullCassandraType fullCassandraType) |
static String |
getColumnValueForCql(com.datastax.driver.core.Row row,
int position,
CassandraType cassandraType) |
static NullableValue |
getColumnValueForPartitionKey(com.datastax.driver.core.Row row,
int position,
CassandraType cassandraType,
List<CassandraType> typeArguments) |
Object |
getJavaValue(Object nativeValue) |
Type |
getNativeType() |
List<CassandraType> |
getTypeArguments() |
int |
getTypeArgumentSize() |
boolean |
isSupportedPartitionKey() |
static CassandraType |
toCassandraType(Type type,
com.datastax.driver.core.ProtocolVersion protocolVersion) |
Object |
validateClusteringKey(Object value) |
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.
|
public static final CassandraType ASCII
public static final CassandraType BIGINT
public static final CassandraType BLOB
public static final CassandraType CUSTOM
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 INET
public static final CassandraType INT
public static final CassandraType SMALLINT
public static final CassandraType TINYINT
public static final CassandraType TEXT
public static final CassandraType DATE
public static final CassandraType TIMESTAMP
public static final CassandraType UUID
public static final CassandraType TIMEUUID
public static final CassandraType VARCHAR
public static final CassandraType VARINT
public static final CassandraType LIST
public static final CassandraType MAP
public static final CassandraType SET
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 Type getNativeType()
public int getTypeArgumentSize()
public static CassandraType getCassandraType(com.datastax.driver.core.DataType.Name name)
public static NullableValue getColumnValue(com.datastax.driver.core.Row row, int position, FullCassandraType fullCassandraType)
public static NullableValue getColumnValue(com.datastax.driver.core.Row row, int position, CassandraType cassandraType, List<CassandraType> typeArguments)
public static NullableValue getColumnValueForPartitionKey(com.datastax.driver.core.Row row, int position, CassandraType cassandraType, List<CassandraType> typeArguments)
public static String getColumnValueForCql(com.datastax.driver.core.Row row, int position, CassandraType cassandraType)
public CassandraType getCassandraType()
getCassandraType in interface FullCassandraTypepublic List<CassandraType> getTypeArguments()
getTypeArguments in interface FullCassandraTypepublic boolean isSupportedPartitionKey()
public static CassandraType toCassandraType(Type type, com.datastax.driver.core.ProtocolVersion protocolVersion)
Copyright © 2012–2020. All rights reserved.