public class CollectionToCollectionCodec<EXTERNAL extends Collection<Object>,INTERNAL extends Collection<Object>> extends ConvertingCodec<EXTERNAL,INTERNAL>
internalCodec, javaType| Constructor and Description |
|---|
CollectionToCollectionCodec(Class<EXTERNAL> javaType,
TypeCodec<INTERNAL> targetCodec,
ConvertingCodec<Object,Object> elementCodec,
Supplier<INTERNAL> collectionCreator) |
| Modifier and Type | Method and Description |
|---|---|
INTERNAL |
externalToInternal(EXTERNAL external)
Converts the external representation of a value (i.e., the value, as produced by a connector)
to its internal representation (i.e., the Java type that matches the target CQL type).
|
EXTERNAL |
internalToExternal(INTERNAL internal)
Converts the internal representation of a value (i.e., the Java type that matches the target
CQL type) to its external representation (i.e., the value, as consumed by a connector).
|
decode, encode, format, getCqlType, getInternalCodec, getInternalJavaType, getJavaType, parsepublic INTERNAL externalToInternal(EXTERNAL external)
ConvertingCodecexternalToInternal in class ConvertingCodec<EXTERNAL extends Collection<Object>,INTERNAL extends Collection<Object>>external - the value's external form.public EXTERNAL internalToExternal(INTERNAL internal)
ConvertingCodecinternalToExternal in class ConvertingCodec<EXTERNAL extends Collection<Object>,INTERNAL extends Collection<Object>>internal - the value's internal form.Copyright © 2017–2021 DataStax. All rights reserved.