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.
-
Interface Summary Interface Description GettableByIndexData Collection of (typed) CQL values that can be retrieved by index (starting at zero).GettableByNameData Collection of (typed) CQL values that can be retrieved by name.GettableData Collection of (typed) CQL values that can be retrieved either by index (starting at zero) or by name.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. -
Class Summary Class Description AbstractGettableData CodecRegistry A registry forTypeCodec
s.CodecUtils A set of utility methods to deal with type conversion and serialization.DataType Data types supported by cassandra.DataType.CollectionType Instances of this class represent collection types, that is, lists, sets or maps.DataType.CustomType A "custom" type is a type that cannot be expressed as a CQL type.DataType.NativeType Instances of this class represent CQL native types, also known as CQL primitive types.DataTypeClassNameParser Duration Represents a duration.LocalDate A date with no time components, no time zone, in the ISO 8601 calendar.Metadata Keeps metadata on the connected cluster, including known nodes and schema definitions.ParseUtils Simple utility class used to help parsing CQL values (mainly UDT and collection ones).TupleType A tuple type.TupleValue A value for a Tuple.TypeCodec<T> TypeCodec.AbstractCollectionCodec<E,C extends java.util.Collection<E>> TypeCodec.AbstractMapCodec<K,V> Base class for codecs mapping CQLmaps
to a JavaMap
.TypeCodec.AbstractTupleCodec<T> Base class for codecs mapping CQLtuples
to Java objects.TypeCodec.AbstractUDTCodec<T> Base class for codecs mapping CQLuser-defined types
(UDTs) to Java objects.TypeCodec.PrimitiveBooleanCodec A codec that is capable of handling primitive booleans, thus avoiding the overhead of boxing and unboxing such primitives.TypeCodec.PrimitiveByteCodec A codec that is capable of handling primitive bytes, thus avoiding the overhead of boxing and unboxing such primitives.TypeCodec.PrimitiveDoubleCodec A codec that is capable of handling primitive doubles, thus avoiding the overhead of boxing and unboxing such primitives.TypeCodec.PrimitiveFloatCodec A codec that is capable of handling primitive floats, thus avoiding the overhead of boxing and unboxing such primitives.TypeCodec.PrimitiveIntCodec A codec that is capable of handling primitive ints, thus avoiding the overhead of boxing and unboxing such primitives.TypeCodec.PrimitiveLongCodec A codec that is capable of handling primitive longs, thus avoiding the overhead of boxing and unboxing such primitives.TypeCodec.PrimitiveShortCodec A codec that is capable of handling primitive shorts, thus avoiding the overhead of boxing and unboxing such primitives.TypeTokens Utility methods to createTypeToken
instances.UDTValue A value for a User Defined Type.UserType A User Defined Type (UDT).UserType.Field A UDT field. -
Enum Summary Enum Description DataType.Name The CQL type name.