Enum DataType.Name
- java.lang.Object
-
- java.lang.Enum<DataType.Name>
-
- org.apache.cassandra.cql3.functions.types.DataType.Name
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DataType.Name>
- Enclosing class:
- DataType
public static enum DataType.Name extends java.lang.Enum<DataType.Name>
The CQL type name.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCompatibleWith(DataType.Name that)
Returntrue
if the provided Name is equal to this one, or if they are aliases for each other, andfalse
otherwise.java.lang.String
toString()
static DataType.Name
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DataType.Name[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CUSTOM
public static final DataType.Name CUSTOM
-
ASCII
public static final DataType.Name ASCII
-
BIGINT
public static final DataType.Name BIGINT
-
BLOB
public static final DataType.Name BLOB
-
BOOLEAN
public static final DataType.Name BOOLEAN
-
COUNTER
public static final DataType.Name COUNTER
-
DECIMAL
public static final DataType.Name DECIMAL
-
DOUBLE
public static final DataType.Name DOUBLE
-
FLOAT
public static final DataType.Name FLOAT
-
INT
public static final DataType.Name INT
-
TEXT
public static final DataType.Name TEXT
-
TIMESTAMP
public static final DataType.Name TIMESTAMP
-
UUID
public static final DataType.Name UUID
-
VARCHAR
public static final DataType.Name VARCHAR
-
VARINT
public static final DataType.Name VARINT
-
TIMEUUID
public static final DataType.Name TIMEUUID
-
INET
public static final DataType.Name INET
-
DATE
public static final DataType.Name DATE
-
TIME
public static final DataType.Name TIME
-
SMALLINT
public static final DataType.Name SMALLINT
-
TINYINT
public static final DataType.Name TINYINT
-
DURATION
public static final DataType.Name DURATION
-
LIST
public static final DataType.Name LIST
-
MAP
public static final DataType.Name MAP
-
SET
public static final DataType.Name SET
-
UDT
public static final DataType.Name UDT
-
TUPLE
public static final DataType.Name TUPLE
-
-
Method Detail
-
values
public static DataType.Name[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataType.Name c : DataType.Name.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataType.Name valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isCompatibleWith
public boolean isCompatibleWith(DataType.Name that)
Returntrue
if the provided Name is equal to this one, or if they are aliases for each other, andfalse
otherwise.- Parameters:
that
- the Name to compare with the current one.- Returns:
true
if the provided Name is equal to this one, or if they are aliases for each other, andfalse
otherwise.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<DataType.Name>
-
-