public enum DataType extends java.lang.Enum<DataType> implements OptionCodec.Codecable<DataType>
Enum Constant and Description |
---|
ASCII |
BIGINT |
BLOB |
BOOLEAN |
COUNTER |
CUSTOM |
DECIMAL |
DOUBLE |
FLOAT |
INET |
INT |
LIST |
MAP |
SET |
TEXT |
TIMESTAMP |
TIMEUUID |
UUID |
VARCHAR |
VARINT |
Modifier and Type | Field and Description |
---|---|
static OptionCodec<DataType> |
codec |
Modifier and Type | Method and Description |
---|---|
static Pair<DataType,java.lang.Object> |
fromType(AbstractType type) |
int |
getId() |
java.lang.Object |
readValue(org.jboss.netty.buffer.ChannelBuffer cb) |
int |
serializedValueSize(java.lang.Object value) |
static AbstractType |
toType(Pair<DataType,java.lang.Object> entry) |
static DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeValue(java.lang.Object value,
org.jboss.netty.buffer.ChannelBuffer cb) |
public static final DataType CUSTOM
public static final DataType ASCII
public static final DataType BIGINT
public static final DataType BLOB
public static final DataType BOOLEAN
public static final DataType COUNTER
public static final DataType DECIMAL
public static final DataType DOUBLE
public static final DataType FLOAT
public static final DataType INT
public static final DataType TEXT
public static final DataType TIMESTAMP
public static final DataType UUID
public static final DataType VARCHAR
public static final DataType VARINT
public static final DataType TIMEUUID
public static final DataType INET
public static final DataType LIST
public static final DataType MAP
public static final DataType SET
public static final OptionCodec<DataType> codec
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
getId
in interface OptionCodec.Codecable<DataType>
public java.lang.Object readValue(org.jboss.netty.buffer.ChannelBuffer cb)
readValue
in interface OptionCodec.Codecable<DataType>
public void writeValue(java.lang.Object value, org.jboss.netty.buffer.ChannelBuffer cb)
writeValue
in interface OptionCodec.Codecable<DataType>
public int serializedValueSize(java.lang.Object value)
serializedValueSize
in interface OptionCodec.Codecable<DataType>
public static Pair<DataType,java.lang.Object> fromType(AbstractType type)
public static AbstractType toType(Pair<DataType,java.lang.Object> entry)
Copyright © 2014 The Apache Software Foundation