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. argCodecs
protected TypeCodec<java.lang.Object>
UDFunction. returnCodec
Methods 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.Object
UDFunction. compose(TypeCodec<java.lang.Object>[] codecs, ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
protected static java.nio.ByteBuffer
UDFunction. decompose(TypeCodec<java.lang.Object> codec, ProtocolVersion protocolVersion, java.lang.Object value)
static java.lang.Object
UDHelper. deserialize(TypeCodec<?> codec, ProtocolVersion protocolVersion, java.nio.ByteBuffer value)
static java.nio.ByteBuffer
UDHelper. 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 givenDataType
s.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 class
TypeCodec.AbstractCollectionCodec<E,C extends java.util.Collection<E>>
static class
TypeCodec.AbstractMapCodec<K,V>
Base class for codecs mapping CQLmaps
to a JavaMap
.static class
TypeCodec.AbstractTupleCodec<T>
Base class for codecs mapping CQLtuples
to Java objects.static class
TypeCodec.AbstractUDTCodec<T>
Base class for codecs mapping CQLuser-defined types
(UDTs) to Java objects.static class
TypeCodec.PrimitiveBooleanCodec
A codec that is capable of handling primitive booleans, thus avoiding the overhead of boxing and unboxing such primitives.static class
TypeCodec.PrimitiveByteCodec
A codec that is capable of handling primitive bytes, thus avoiding the overhead of boxing and unboxing such primitives.static class
TypeCodec.PrimitiveDoubleCodec
A codec that is capable of handling primitive doubles, thus avoiding the overhead of boxing and unboxing such primitives.static class
TypeCodec.PrimitiveFloatCodec
A codec that is capable of handling primitive floats, thus avoiding the overhead of boxing and unboxing such primitives.static class
TypeCodec.PrimitiveIntCodec
A codec that is capable of handling primitive ints, thus avoiding the overhead of boxing and unboxing such primitives.static class
TypeCodec.PrimitiveLongCodec
A codec that is capable of handling primitive longs, thus avoiding the overhead of boxing and unboxing such primitives.static class
TypeCodec.PrimitiveShortCodec
A 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 acodec
that 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 typelist
whose 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 typemap
whose 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 typeset
whose 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> T
AbstractGettableData. get(java.lang.String name, TypeCodec<T> codec)
Returns the value forname
converted using the givenTypeCodec
.<T> T
GettableByIndexData. get(int i, TypeCodec<T> codec)
Returns thei
th value converted using the givenTypeCodec
.<T> T
GettableByNameData. get(java.lang.String name, TypeCodec<T> codec)
Returns the value forname
converted using the givenTypeCodec
.static <T> TypeCodec<java.util.List<T>>
TypeCodec. list(TypeCodec<T> elementCodec)
Return a newly-created codec for the CQL typelist
whose 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 typemap
whose key type and value type are determined by the given codecs.CodecRegistry
CodecRegistry. register(TypeCodec<?> newCodec)
Register the given codec with this registry.CodecRegistry
CodecRegistry. register(TypeCodec<?>... codecs)
Register the given codecs with this registry.<V> T
SettableByIndexData. set(int i, V v, TypeCodec<V> codec)
Sets thei
th value to the provided value, converted using the givenTypeCodec
.<V> T
SettableByNameData. set(java.lang.String name, V v, TypeCodec<V> codec)
Sets the value for (all occurrences of) variablename
to 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 typeset
whose 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 CodecRegistry
CodecRegistry. register(java.lang.Iterable<? extends TypeCodec<?>> codecs)
Register the given codecs with this registry.
-