Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
Modifier and Type | Class and Description |
---|---|
static class |
TypeCodec.AbstractCollectionCodec<E,C extends Collection<E>>
|
static class |
TypeCodec.AbstractMapCodec<K,V>
|
static class |
TypeCodec.AbstractTupleCodec<T>
Base class for codecs mapping CQL
tuples to Java objects. |
static class |
TypeCodec.AbstractUDTCodec<T>
Base class for codecs mapping CQL
user-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.
|
Modifier and Type | Field and Description |
---|---|
protected TypeCodec<E> |
TypeCodec.AbstractCollectionCodec.eltCodec |
protected TypeCodec<K> |
TypeCodec.AbstractMapCodec.keyCodec |
protected TypeCodec<V> |
TypeCodec.AbstractMapCodec.valueCodec |
Modifier and Type | Method and Description |
---|---|
static TypeCodec<String> |
TypeCodec.ascii()
Return the default codec for the CQL type
ascii . |
static TypeCodec<ByteBuffer> |
TypeCodec.blob()
Return the default codec for the CQL type
blob . |
<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,
TypeToken<T> javaType)
|
<T> TypeCodec<T> |
CodecRegistry.codecFor(T value)
Returns a
codec that accepts the given value. |
static TypeCodec<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 type
date . |
static TypeCodec<BigDecimal> |
TypeCodec.decimal()
Return the default codec for the CQL type
decimal . |
static TypeCodec<Duration> |
TypeCodec.duration()
Returns the default codec for the
Duration type . |
static TypeCodec<InetAddress> |
TypeCodec.inet()
Return the default codec for the CQL type
inet . |
static <T> TypeCodec<List<T>> |
TypeCodec.list(TypeCodec<T> elementCodec)
Return a newly-created codec for the CQL type
list whose element type is determined by
the given element codec. |
static <K,V> TypeCodec<Map<K,V>> |
TypeCodec.map(TypeCodec<K> keyCodec,
TypeCodec<V> valueCodec)
Return a newly-created codec for the CQL type
map whose key type and value type are
determined by the given codecs. |
static <T> TypeCodec<Set<T>> |
TypeCodec.set(TypeCodec<T> elementCodec)
Return a newly-created codec for the CQL type
set whose element type is determined by
the given element codec. |
static TypeCodec<Date> |
TypeCodec.timestamp()
Return the default codec for the CQL type
timestamp . |
static TypeCodec<UUID> |
TypeCodec.timeUUID()
Return the default codec for the CQL type
timeuuid . |
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<UUID> |
TypeCodec.uuid()
Return the default codec for the CQL type
uuid . |
static TypeCodec<String> |
TypeCodec.varchar()
Return the default codec for the CQL type
varchar . |
static TypeCodec<BigInteger> |
TypeCodec.varint()
Return the default codec for the CQL type
varint . |
Modifier and Type | Method and Description |
---|---|
<T> T |
BoundStatement.get(int i,
TypeCodec<T> codec)
Returns the
i th value converted using the given TypeCodec . |
<T> T |
GettableByIndexData.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 . |
static <T> TypeCodec<List<T>> |
TypeCodec.list(TypeCodec<T> elementCodec)
Return a newly-created codec for the CQL type
list whose element type is determined by
the given element codec. |
static <K,V> TypeCodec<Map<K,V>> |
TypeCodec.map(TypeCodec<K> keyCodec,
TypeCodec<V> valueCodec)
Return a newly-created codec for the CQL type
map whose key type and value type are
determined by the given codecs. |
static <K,V> TypeCodec<Map<K,V>> |
TypeCodec.map(TypeCodec<K> keyCodec,
TypeCodec<V> valueCodec)
Return a newly-created codec for the CQL type
map whose key type and value type are
determined by the given codecs. |
CodecRegistry |
CodecRegistry.register(TypeCodec<?>... codecs)
Register the given codecs with this registry.
|
CodecRegistry |
CodecRegistry.register(TypeCodec<?> newCodec)
Register the given codec with this registry.
|
<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 |
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(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> 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 . |
static <T> TypeCodec<Set<T>> |
TypeCodec.set(TypeCodec<T> elementCodec)
Return a newly-created codec for the CQL type
set whose element type is determined by
the given element codec. |
Modifier and Type | Method and Description |
---|---|
CodecRegistry |
CodecRegistry.register(Iterable<? extends TypeCodec<?>> codecs)
Register the given codecs with this registry.
|
Constructor and Description |
---|
AbstractCollectionCodec(DataType.CollectionType cqlType,
TypeToken<C> javaType,
TypeCodec<E> eltCodec) |
AbstractMapCodec(TypeCodec<K> keyCodec,
TypeCodec<V> valueCodec) |
AbstractMapCodec(TypeCodec<K> keyCodec,
TypeCodec<V> valueCodec) |
Copyright © 2012–2024. All rights reserved.