Package | Description |
---|---|
org.springframework.data.cassandra.core.convert |
Spring Data Cassandra specific converter infrastructure.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CassandraColumnType
Descriptor for a Cassandra column type exposing a
DataType . |
Modifier and Type | Method and Description |
---|---|
static ColumnType |
ColumnType.create(Class<?> type)
Creates a
ColumnType for a Class . |
static ColumnType |
ColumnType.create(TypeInformation<?> type)
Creates a
ColumnType for a TypeInformation . |
ColumnType |
ColumnType.getComponentType()
Returns the component type for
Collection s or the key type for Map s. |
ColumnType |
ColumnType.getMapValueType()
Returns the map value type in case the underlying type is a
Map . |
default ColumnType |
ColumnType.getRequiredComponentType()
Returns the component type for
Collection s, the key type for Map s or the single
generic type if available. |
default ColumnType |
ColumnType.getRequiredMapValueType()
Returns the map value type in case the underlying type is a
Map . or throw
IllegalStateException if the map value type cannot be resolved. |
static ColumnType |
ColumnType.listOf(ColumnType componentType)
Creates a List
ColumnType given its component type . |
static ColumnType |
ColumnType.mapOf(ColumnType keyType,
ColumnType valueType)
Creates a Map
ColumnType given its key and value types . |
ColumnType |
ColumnTypeResolver.resolve(Object value)
Resolve a
ColumnType from a value . |
static ColumnType |
ColumnType.setOf(ColumnType componentType)
Creates a Set
ColumnType given its component type . |
Modifier and Type | Method and Description |
---|---|
Object |
MappingCassandraConverter.convertToColumnType(Object value,
ColumnType columnType) |
Object |
CassandraConverter.convertToColumnType(Object value,
ColumnType typeDescriptor)
Converts the given object into a value Cassandra will be able to store natively in a column.
|
static ColumnType |
ColumnType.listOf(ColumnType componentType)
Creates a List
ColumnType given its component type . |
static ColumnType |
ColumnType.mapOf(ColumnType keyType,
ColumnType valueType)
Creates a Map
ColumnType given its key and value types . |
static ColumnType |
ColumnType.setOf(ColumnType componentType)
Creates a Set
ColumnType given its component type . |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.