public static enum CQL3Type.Native extends java.lang.Enum<CQL3Type.Native> implements CQL3Type
CQL3Type.Collection, CQL3Type.Custom, CQL3Type.Native, CQL3Type.Raw, CQL3Type.Tuple, CQL3Type.UserDefined
Enum Constant and Description |
---|
ASCII |
BIGINT |
BLOB |
BOOLEAN |
COUNTER |
DATE |
DECIMAL |
DOUBLE |
DURATION |
EMPTY |
FLOAT |
INET |
INT |
SMALLINT |
TEXT |
TIME |
TIMESTAMP |
TIMEUUID |
TINYINT |
UUID |
VARCHAR |
VARINT |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
getType() |
java.lang.String |
toCQLLiteral(java.nio.ByteBuffer buffer,
ProtocolVersion version)
Delegate to
TypeSerializer.toCQLLiteral(ByteBuffer)
for native types as most CQL literal representations work fine with the default
TypeSerializer.toString(Object)
TypeSerializer.deserialize(ByteBuffer) implementations. |
java.lang.String |
toString() |
static CQL3Type.Native |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CQL3Type.Native[] |
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, valueOf
isCollection, isUDT
public static final CQL3Type.Native ASCII
public static final CQL3Type.Native BIGINT
public static final CQL3Type.Native BLOB
public static final CQL3Type.Native BOOLEAN
public static final CQL3Type.Native COUNTER
public static final CQL3Type.Native DATE
public static final CQL3Type.Native DECIMAL
public static final CQL3Type.Native DOUBLE
public static final CQL3Type.Native DURATION
public static final CQL3Type.Native EMPTY
public static final CQL3Type.Native FLOAT
public static final CQL3Type.Native INET
public static final CQL3Type.Native INT
public static final CQL3Type.Native SMALLINT
public static final CQL3Type.Native TEXT
public static final CQL3Type.Native TIME
public static final CQL3Type.Native TIMESTAMP
public static final CQL3Type.Native TIMEUUID
public static final CQL3Type.Native TINYINT
public static final CQL3Type.Native UUID
public static final CQL3Type.Native VARCHAR
public static final CQL3Type.Native VARINT
public static CQL3Type.Native[] values()
for (CQL3Type.Native c : CQL3Type.Native.values()) System.out.println(c);
public static CQL3Type.Native 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 AbstractType<?> getType()
public java.lang.String toCQLLiteral(java.nio.ByteBuffer buffer, ProtocolVersion version)
TypeSerializer.toCQLLiteral(ByteBuffer)
for native types as most CQL literal representations work fine with the default
TypeSerializer.toString(Object)
TypeSerializer.deserialize(ByteBuffer)
implementations.toCQLLiteral
in interface CQL3Type
buffer
- the value to convert to a CQL literal. This value must be
serialized with version
of the native protocol.version
- the native protocol version in which buffer
is encoded.public java.lang.String toString()
toString
in class java.lang.Enum<CQL3Type.Native>
Copyright © 2018 The Apache Software Foundation