Uses of Class
org.apache.cassandra.cql3.functions.types.TypeCodec
-
Packages that use TypeCodec Package Description org.apache.cassandra.cql3.functions 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. -
-
Uses of TypeCodec in org.apache.cassandra.cql3.functions
Fields in org.apache.cassandra.cql3.functions declared as TypeCodec Modifier and Type Field Description protected TypeCodec<java.lang.Object>[]UDFunction. argCodecsprotected TypeCodec<java.lang.Object>UDFunction. returnCodecMethods in org.apache.cassandra.cql3.functions that return TypeCodec Modifier and Type Method Description static TypeCodec<java.lang.Object>UDHelper. codecFor(DataType dataType)Methods in org.apache.cassandra.cql3.functions with parameters of type TypeCodec Modifier and Type Method Description static java.lang.Class<?>UDHelper. asJavaClass(TypeCodec<?> codec)protected static java.lang.ObjectUDFunction. compose(TypeCodec<java.lang.Object>[] codecs, ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected static java.nio.ByteBufferUDFunction. decompose(TypeCodec<java.lang.Object> codec, ProtocolVersion protocolVersion, java.lang.Object value)static java.lang.ObjectUDHelper. deserialize(TypeCodec<?> codec, ProtocolVersion protocolVersion, java.nio.ByteBuffer value)static java.nio.ByteBufferUDHelper. serialize(TypeCodec<?> codec, ProtocolVersion protocolVersion, java.lang.Object value)static com.google.common.reflect.TypeToken<?>[]UDHelper. typeTokens(TypeCodec<java.lang.Object>[] dataTypes, boolean calledOnNullInput)Construct an array containing the Java classes for the givenDataTypes.Constructors in org.apache.cassandra.cql3.functions with parameters of type TypeCodec Constructor Description JavaUDF(TypeCodec<java.lang.Object> returnCodec, TypeCodec<java.lang.Object>[] argCodecs, UDFContext udfContext) -
Uses of TypeCodec in org.apache.cassandra.cql3.functions.types
Subclasses of TypeCodec in org.apache.cassandra.cql3.functions.types Modifier and Type Class Description static classTypeCodec.AbstractCollectionCodec<E,C extends java.util.Collection<E>>static classTypeCodec.AbstractMapCodec<K,V>Base class for codecs mapping CQLmapsto a JavaMap.static classTypeCodec.AbstractTupleCodec<T>Base class for codecs mapping CQLtuplesto Java objects.static classTypeCodec.AbstractUDTCodec<T>Base class for codecs mapping CQLuser-defined types(UDTs) to Java objects.static classTypeCodec.PrimitiveBooleanCodecA codec that is capable of handling primitive booleans, thus avoiding the overhead of boxing and unboxing such primitives.static classTypeCodec.PrimitiveByteCodecA codec that is capable of handling primitive bytes, thus avoiding the overhead of boxing and unboxing such primitives.static classTypeCodec.PrimitiveDoubleCodecA codec that is capable of handling primitive doubles, thus avoiding the overhead of boxing and unboxing such primitives.static classTypeCodec.PrimitiveFloatCodecA codec that is capable of handling primitive floats, thus avoiding the overhead of boxing and unboxing such primitives.static classTypeCodec.PrimitiveIntCodecA codec that is capable of handling primitive ints, thus avoiding the overhead of boxing and unboxing such primitives.static classTypeCodec.PrimitiveLongCodecA codec that is capable of handling primitive longs, thus avoiding the overhead of boxing and unboxing such primitives.static classTypeCodec.PrimitiveShortCodecA codec that is capable of handling primitive shorts, thus avoiding the overhead of boxing and unboxing such primitives.Methods in org.apache.cassandra.cql3.functions.types that return TypeCodec Modifier and Type Method Description static TypeCodec<java.lang.String>TypeCodec. ascii()Return the default codec for the CQL typeascii.static TypeCodec<java.nio.ByteBuffer>TypeCodec. blob()Return the default codec for the CQL typeblob.<T> TypeCodec<T>CodecRegistry. codecFor(DataType cqlType)<T> TypeCodec<T>CodecRegistry. codecFor(DataType cqlType, com.google.common.reflect.TypeToken<T> javaType)<T> TypeCodec<T>CodecRegistry. codecFor(DataType cqlType, java.lang.Class<T> javaType)<T> TypeCodec<T>CodecRegistry. codecFor(DataType cqlType, T value)<T> TypeCodec<T>CodecRegistry. codecFor(T value)Returns acodecthat accepts the given value.static TypeCodec<java.nio.ByteBuffer>TypeCodec. custom(DataType.CustomType type)Return a newly-created codec for the given CQL custom type.static TypeCodec<LocalDate>TypeCodec. date()Return the default codec for the CQL typedate.static TypeCodec<java.math.BigDecimal>TypeCodec. decimal()Return the default codec for the CQL typedecimal.static TypeCodec<Duration>TypeCodec. duration()Returns the default codec for theDuration type.static TypeCodec<java.net.InetAddress>TypeCodec. inet()Return the default codec for the CQL typeinet.static <T> TypeCodec<java.util.List<T>>TypeCodec. list(TypeCodec<T> elementCodec)Return a newly-created codec for the CQL typelistwhose element type is determined by the given element codec.static <K,V>
TypeCodec<java.util.Map<K,V>>TypeCodec. map(TypeCodec<K> keyCodec, TypeCodec<V> valueCodec)Return a newly-created codec for the CQL typemapwhose key type and value type are determined by the given codecs.static <T> TypeCodec<java.util.Set<T>>TypeCodec. set(TypeCodec<T> elementCodec)Return a newly-created codec for the CQL typesetwhose element type is determined by the given element codec.static TypeCodec<java.util.Date>TypeCodec. timestamp()Return the default codec for the CQL typetimestamp.static TypeCodec<java.util.UUID>TypeCodec. timeUUID()Return the default codec for the CQL typetimeuuid.static TypeCodec<TupleValue>TypeCodec. tuple(TupleType type)Return a newly-created codec for the given CQL tuple type.static TypeCodec<UDTValue>TypeCodec. userType(UserType type)Return a newly-created codec for the given user-defined CQL type.static TypeCodec<java.util.UUID>TypeCodec. uuid()Return the default codec for the CQL typeuuid.static TypeCodec<java.lang.String>TypeCodec. varchar()Return the default codec for the CQL typevarchar.static TypeCodec<java.math.BigInteger>TypeCodec. varint()Return the default codec for the CQL typevarint.Methods in org.apache.cassandra.cql3.functions.types with parameters of type TypeCodec Modifier and Type Method Description <T> TAbstractGettableData. get(java.lang.String name, TypeCodec<T> codec)Returns the value fornameconverted using the givenTypeCodec.<T> TGettableByIndexData. get(int i, TypeCodec<T> codec)Returns theith value converted using the givenTypeCodec.<T> TGettableByNameData. get(java.lang.String name, TypeCodec<T> codec)Returns the value fornameconverted using the givenTypeCodec.static <T> TypeCodec<java.util.List<T>>TypeCodec. list(TypeCodec<T> elementCodec)Return a newly-created codec for the CQL typelistwhose element type is determined by the given element codec.static <K,V>
TypeCodec<java.util.Map<K,V>>TypeCodec. map(TypeCodec<K> keyCodec, TypeCodec<V> valueCodec)Return a newly-created codec for the CQL typemapwhose key type and value type are determined by the given codecs.CodecRegistryCodecRegistry. register(TypeCodec<?> newCodec)Register the given codec with this registry.CodecRegistryCodecRegistry. register(TypeCodec<?>... codecs)Register the given codecs with this registry.<V> TSettableByIndexData. set(int i, V v, TypeCodec<V> codec)Sets theith value to the provided value, converted using the givenTypeCodec.<V> TSettableByNameData. set(java.lang.String name, V v, TypeCodec<V> codec)Sets the value for (all occurrences of) variablenameto the provided value, converted using the givenTypeCodec.static <T> TypeCodec<java.util.Set<T>>TypeCodec. set(TypeCodec<T> elementCodec)Return a newly-created codec for the CQL typesetwhose element type is determined by the given element codec.Method parameters in org.apache.cassandra.cql3.functions.types with type arguments of type TypeCodec Modifier and Type Method Description CodecRegistryCodecRegistry. register(java.lang.Iterable<? extends TypeCodec<?>> codecs)Register the given codecs with this registry.
-