public enum CassandrType extends Enum<CassandrType>
| 枚举常量和说明 |
|---|
ascii |
bigint |
blob |
boolean_ |
counter |
decimal |
double_ |
float_ |
inet |
int_ |
text |
timestamp |
timeuuid |
uuid |
varchar |
varint |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
formatValue(CassandrType cassandrType,
String value) |
static CassandrType |
get(String value) |
String |
getDesc() |
String |
getValue() |
static CassandrType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CassandrType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CassandrType ascii
public static final CassandrType bigint
public static final CassandrType blob
public static final CassandrType boolean_
public static final CassandrType counter
public static final CassandrType decimal
public static final CassandrType double_
public static final CassandrType float_
public static final CassandrType inet
public static final CassandrType int_
public static final CassandrType text
public static final CassandrType timestamp
public static final CassandrType timeuuid
public static final CassandrType uuid
public static final CassandrType varchar
public static final CassandrType varint
public static CassandrType[] values()
for (CassandrType c : CassandrType.values()) System.out.println(c);
public static CassandrType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getValue()
public String getDesc()
public static String formatValue(CassandrType cassandrType, String value)
public static CassandrType get(String value)
Copyright © 2023. All rights reserved.