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.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 | 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,
com.google.common.reflect.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<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<Long> |
TypeCodec.time()
Return the default codec for the CQL type
time . |
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 |
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 . |
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> 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 . |
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.
|
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.