Class DataType.CollectionType
- java.lang.Object
-
- org.apache.cassandra.cql3.functions.types.DataType
-
- org.apache.cassandra.cql3.functions.types.DataType.CollectionType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.functions.types.DataType
DataType.CollectionType, DataType.CustomType, DataType.Name, DataType.NativeType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringasFunctionParameterString()Returns a String representation of this data type suitable for inclusion as a parameter type in a function or aggregate signature.booleanequals(java.lang.Object o)java.util.List<DataType>getTypeArguments()Returns the type arguments of this type.inthashCode()booleanisFrozen()Returns whether this data type is frozen.java.lang.StringtoString()-
Methods inherited from class org.apache.cassandra.cql3.functions.types.DataType
ascii, bigint, blob, cboolean, cdouble, cfloat, cint, counter, custom, date, decimal, duration, getName, inet, isCollection, list, list, map, map, set, set, smallint, text, time, timestamp, timeuuid, tinyint, uuid, varchar, varint
-
-
-
-
Method Detail
-
isFrozen
public boolean isFrozen()
Description copied from class:DataTypeReturns whether this data type is frozen.This applies to User Defined Types, tuples and nested collections. Frozen types are serialized as a single value in Cassandra's storage engine, whereas non-frozen types are stored in a form that allows updates to individual subfields.
-
getTypeArguments
public java.util.List<DataType> getTypeArguments()
Description copied from class:DataTypeReturns the type arguments of this type.Note that only the collection types (LIST, MAP, SET) have type arguments. For the other types, this will return an empty list.
For the collection types:
- For lists and sets, this method returns one argument, the type of the elements.
- For maps, this method returns two arguments, the first one is the type of the map keys, the second one is the type of the map values.
- Overrides:
getTypeArgumentsin classDataType- Returns:
- an immutable list containing the type arguments of this type.
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
asFunctionParameterString
public java.lang.String asFunctionParameterString()
Description copied from class:DataTypeReturns a String representation of this data type suitable for inclusion as a parameter type in a function or aggregate signature.In such places, the String representation might vary from the canonical one as returned by
Object.toString(); e.g. thefrozenkeyword is not accepted.- Overrides:
asFunctionParameterStringin classDataType- Returns:
- a String representation of this data type suitable for inclusion as a parameter type in a function or aggregate signature.
-
-