Package org.apache.cassandra.cql3
Enum Class CQL3Type.Native
- All Implemented Interfaces:
Serializable,Comparable<CQL3Type.Native>,Constable,CQL3Type
- Enclosing interface:
- CQL3Type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQL3Type
CQL3Type.Collection, CQL3Type.Custom, CQL3Type.Native, CQL3Type.Raw, CQL3Type.Tuple, CQL3Type.UserDefined, CQL3Type.Vector -
Enum Constant Summary
Enum Constants -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionAbstractType<?>getType()toCQLLiteral(ByteBuffer buffer) Delegate toTypeSerializer.toCQLLiteral(ByteBuffer)for native types as most CQL literal representations work fine with the defaultTypeSerializer.toString(Object)TypeSerializer.deserialize(ByteBuffer)implementations.toString()static CQL3Type.NativeReturns the enum constant of this class with the specified name.static CQL3Type.Native[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface org.apache.cassandra.cql3.CQL3Type
fromCQLLiteral, fromCQLLiteral, isCollection, isUDT, isVector
-
Enum Constant Details
-
ASCII
-
BIGINT
-
BLOB
-
BOOLEAN
-
COUNTER
-
DATE
-
DECIMAL
-
DOUBLE
-
DURATION
-
EMPTY
-
FLOAT
-
INET
-
INT
-
SMALLINT
-
TEXT
-
TIME
-
TIMESTAMP
-
TIMEUUID
-
TINYINT
-
UUID
-
VARCHAR
-
VARINT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getType
-
toCQLLiteral
Delegate toTypeSerializer.toCQLLiteral(ByteBuffer)for native types as most CQL literal representations work fine with the defaultTypeSerializer.toString(Object)TypeSerializer.deserialize(ByteBuffer)implementations.- Specified by:
toCQLLiteralin interfaceCQL3Type- Parameters:
buffer- the value to convert to a CQL literal. This value must be serialized withversionof the native protocol.
-
toString
- Overrides:
toStringin classEnum<CQL3Type.Native>
-