Package org.apache.cassandra.cql3.functions.types
package org.apache.cassandra.cql3.functions.types
Contains pieces of the Java Driver that are needed to handle data types
in C* User-Defined-Functions/Aggregates.
The code has been copied from the Java Driver source but not especially adopted. Existing UDFs may rely on certain classes and interfaces, so changing interfaces and classes in this package must be performed very carefully to not break those existing UDFs.
Some of the functionality in this package is probably duplicated, especially the type parsing and value formatting/parsing code is.
But referencing code outside this package can break UDFs as the UDF sandbox can prevent the use of code outside this package.
Comments in the classes in this package have been left as they were in the Java Driver.
-
ClassDescriptionA registry for
TypeCodecs.A set of utility methods to deal with type conversion and serialization.Data types supported by cassandra.Instances of this class represent collection types, that is, lists, sets or maps.A "custom" type is a type that cannot be expressed as a CQL type.The CQL type name.Instances of this class represent CQL native types, also known as CQL primitive types.Represents a duration.Collection of (typed) CQL values that can be retrieved by index (starting at zero).Collection of (typed) CQL values that can be retrieved by name.Collection of (typed) CQL values that can be retrieved either by index (starting at zero) or by name.A date with no time components, no time zone, in the ISO 8601 calendar.Keeps metadata on the connected cluster, including known nodes and schema definitions.Simple utility class used to help parsing CQL values (mainly UDT and collection ones).SettableByIndexData<T extends SettableByIndexData<T>>Collection of (typed) CQL values that can be set by index (starting at zero).SettableByNameData<T extends SettableData<T>>Collection of (typed) CQL values that can set by name.SettableData<T extends SettableData<T>>Collection of (typed) CQL values that can be set either by index (starting at zero) or by name.A tuple type.A value for a Tuple.TypeCodec<T>TypeCodec.AbstractCollectionCodec<E,C extends Collection<E>> Base class for codecs mapping CQLtuplesto Java objects.Base class for codecs mapping CQLuser-defined types(UDTs) to Java objects.A codec that is capable of handling primitive booleans, thus avoiding the overhead of boxing and unboxing such primitives.A codec that is capable of handling primitive bytes, thus avoiding the overhead of boxing and unboxing such primitives.A codec that is capable of handling primitive doubles, thus avoiding the overhead of boxing and unboxing such primitives.A codec that is capable of handling primitive floats, thus avoiding the overhead of boxing and unboxing such primitives.A codec that is capable of handling primitive ints, thus avoiding the overhead of boxing and unboxing such primitives.A codec that is capable of handling primitive longs, thus avoiding the overhead of boxing and unboxing such primitives.A codec that is capable of handling primitive shorts, thus avoiding the overhead of boxing and unboxing such primitives.Utility methods to createTypeTokeninstances.A value for a User Defined Type.A User Defined Type (UDT).A UDT field.VectorCodec<E>TypeCodecfor the CQL typevector.A vector type.