Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
com.datastax.driver.mapping | |
com.datastax.driver.mapping.annotations |
Modifier and Type | Class and Description |
---|---|
static class |
TypeCodec.AbstractUUIDCodec
Base class for codecs handling CQL UUID types such as
DataType.uuid() and DataType.timeuuid() . |
static class |
TypeCodec.AsciiCodec
This codec maps a CQL
DataType.ascii() to a Java String . |
static class |
TypeCodec.BigintCodec
This codec maps a CQL
DataType.bigint() to a Java Long . |
static class |
TypeCodec.BlobCodec
This codec maps a CQL
DataType.blob() to a Java ByteBuffer . |
static class |
TypeCodec.BooleanCodec
This codec maps a CQL
DataType.cboolean() to a Java Boolean . |
static class |
TypeCodec.CollectionCodec<E,C extends Collection<E>>
Base class for codecs handling CQL collection types such as
DataType.list(DataType)
or DataType.set(DataType) . |
static class |
TypeCodec.CounterCodec
This codec maps a CQL
DataType.counter() to a Java Long . |
static class |
TypeCodec.CustomCodec
This codec maps a CQL
DataType.custom(String) to a Java ByteBuffer . |
static class |
TypeCodec.DateCodec
This codec maps a CQL
DataType.date() to the custom LocalDate class. |
static class |
TypeCodec.DecimalCodec
This codec maps a CQL
DataType.decimal() to a Java BigDecimal . |
static class |
TypeCodec.DoubleCodec
This codec maps a CQL
DataType.cdouble() to a Java Double . |
static class |
TypeCodec.EnumIntCodec<E extends Enum<E>>
A codec that serializes
Enum instances as CQL int s
representing their ordinal values as returned by Enum.ordinal() . |
static class |
TypeCodec.EnumStringCodec<E extends Enum<E>>
A codec that serializes
Enum instances as CQL varchar s
representing their programmatic names as returned by Enum.name() . |
static class |
TypeCodec.FloatCodec
This codec maps a CQL
DataType.cfloat() to a Java Float . |
static class |
TypeCodec.InetCodec
This codec maps a CQL
DataType.inet() to a Java InetAddress . |
static class |
TypeCodec.IntCodec
This codec maps a CQL
DataType.cint() to a Java Integer . |
static class |
TypeCodec.ListCodec<T>
|
static class |
TypeCodec.LongCodec
Base class for codecs handling CQL 8-byte integer types such as
DataType.bigint() ,
DataType.counter() or DataType.time() . |
static class |
TypeCodec.MapCodec<K,V>
|
static class |
TypeCodec.MappingCodec<T,U>
An abstract TypeCodec that maps a Java Pojo to another Java object
that can in turn be serialized into a CQL type.
|
static class |
TypeCodec.SetCodec<T>
|
static class |
TypeCodec.SmallIntCodec
This codec maps a CQL
DataType.smallint() to a Java Short . |
static class |
TypeCodec.StringCodec
Base class for codecs handling CQL string types such as
DataType.varchar() ,
DataType.text() or DataType.ascii() . |
static class |
TypeCodec.StringParsingCodec<T>
An abstract TypeCodec that actually stores objects as serialized strings.
|
static class |
TypeCodec.TimeCodec
This codec maps a CQL
DataType.time() to a Java Long . |
static class |
TypeCodec.TimestampCodec
This codec maps a CQL
DataType.timestamp() to a Java Date . |
static class |
TypeCodec.TimeUUIDCodec
This codec maps a CQL
DataType.timeuuid() to a Java UUID . |
static class |
TypeCodec.TinyIntCodec
This codec maps a CQL
DataType.tinyint() to a Java Byte . |
static class |
TypeCodec.TupleCodec
This codec maps a CQL
TupleType to a TupleValue . |
static class |
TypeCodec.UDTCodec
|
static class |
TypeCodec.UUIDCodec
This codec maps a CQL
DataType.uuid() to a Java UUID . |
static class |
TypeCodec.VarcharCodec
This codec maps a CQL
DataType.varchar() to a Java String . |
static class |
TypeCodec.VarintCodec
This codec maps a CQL
DataType.varint() to a Java BigInteger . |
Modifier and Type | Field and Description |
---|---|
protected TypeCodec<E> |
TypeCodec.CollectionCodec.eltCodec |
protected TypeCodec<U> |
TypeCodec.MappingCodec.innerCodec |
Modifier and Type | Method and Description |
---|---|
<T> TypeCodec<T> |
CodecRegistry.codecFor(DataType cqlType)
|
<T> TypeCodec<T> |
CodecRegistry.codecFor(DataType cqlType,
Class<T> javaType)
|
<T> TypeCodec<T> |
CodecRegistry.codecFor(DataType cqlType,
T value)
|
<T> TypeCodec<T> |
CodecRegistry.codecFor(DataType cqlType,
com.google.common.reflect.TypeToken<T> javaType)
|
<T> TypeCodec<T> |
CodecRegistry.codecFor(T value)
Returns a
codec that accepts the given value. |
Modifier and Type | Method and Description |
---|---|
<T> T |
GettableByIndexData.get(int i,
TypeCodec<T> codec)
Returns the
i th value converted using the given TypeCodec . |
<T> T |
BoundStatement.get(int i,
TypeCodec<T> codec)
Returns the
i th value converted using the given TypeCodec . |
<T> T |
GettableByNameData.get(String name,
TypeCodec<T> codec)
Returns the value for
name converted using the given TypeCodec . |
<T> T |
BoundStatement.get(String name,
TypeCodec<T> codec)
Returns the value for
name converted using the given TypeCodec . |
<T> T |
AbstractGettableData.get(String name,
TypeCodec<T> codec)
Returns the value for
name converted using the given TypeCodec . |
CodecRegistry |
CodecRegistry.register(TypeCodec<?>... codecs)
Register the given codecs with this registry.
|
CodecRegistry |
CodecRegistry.register(TypeCodec<?> codec)
Register the given codec with this registry.
|
<V> T |
SettableByIndexData.set(int i,
V v,
TypeCodec<V> codec)
Sets the
i th value to the provided value, converted using the given TypeCodec . |
<V> BoundStatement |
BoundStatement.set(int i,
V v,
TypeCodec<V> codec)
Sets the
i th value to the provided value, converted using the given TypeCodec . |
<V> T |
SettableByNameData.set(String name,
V v,
TypeCodec<V> codec)
Sets the value for (all occurrences of) variable
name to the provided value,
converted using the given TypeCodec . |
<V> BoundStatement |
BoundStatement.set(String name,
V v,
TypeCodec<V> codec)
Sets the value for (all occurrences of) variable
name to the provided value,
converted using the given TypeCodec . |
Modifier and Type | Method and Description |
---|---|
CodecRegistry |
CodecRegistry.register(Iterable<? extends TypeCodec<?>> codecs)
Register the given codecs with this registry.
|
Constructor and Description |
---|
AggregateMetadata(KeyspaceMetadata keyspace,
String fullName,
String simpleName,
List<DataType> argumentTypes,
String finalFuncSimpleName,
String finalFuncFullName,
Object initCond,
DataType returnType,
String stateFuncSimpleName,
String stateFuncFullName,
DataType stateType,
TypeCodec<Object> stateTypeCodec) |
CollectionCodec(DataType.CollectionType cqlType,
com.google.common.reflect.TypeToken<C> javaType,
TypeCodec<E> eltCodec) |
EnumIntCodec(TypeCodec<Integer> innerCodec,
Class<E> enumClass) |
EnumStringCodec(TypeCodec<String> innerCodec,
Class<E> enumClass) |
ListCodec(TypeCodec<T> eltCodec) |
MapCodec(TypeCodec<K> keyCodec,
TypeCodec<V> valueCodec) |
MapCodec(TypeCodec<K> keyCodec,
TypeCodec<V> valueCodec) |
MappingCodec(TypeCodec<U> innerCodec,
Class<T> javaType) |
MappingCodec(TypeCodec<U> innerCodec,
com.google.common.reflect.TypeToken<T> javaType) |
SetCodec(TypeCodec<T> eltCodec) |
StringParsingCodec(TypeCodec<String> innerCodec,
Class<T> javaType) |
StringParsingCodec(TypeCodec<String> innerCodec,
com.google.common.reflect.TypeToken<T> javaType) |
Modifier and Type | Method and Description |
---|---|
<T> TypeCodec<T> |
MappingManager.udtCodec(Class<T> klass)
Creates a
TypeCodec for the provided class (that must be annotated by
a UDT annotation). |
Modifier and Type | Class and Description |
---|---|
static class |
Defaults.NoCodec
A fake codec implementation to use as the default in mapping annotations.
|
Copyright © 2012–2015. All rights reserved.