public class MapToMapCodec<EK,EV,IK,IV> extends ConvertingCodec<Map<EK,EV>,Map<IK,IV>>
internalCodec, javaType| Constructor and Description |
|---|
MapToMapCodec(Class<Map<EK,EV>> javaType,
TypeCodec<Map<IK,IV>> targetCodec,
ConvertingCodec<EK,IK> keyCodec,
ConvertingCodec<EV,IV> valueCodec) |
| Modifier and Type | Method and Description |
|---|---|
Map<IK,IV> |
externalToInternal(Map<EK,EV> 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).
|
Map<EK,EV> |
internalToExternal(Map<IK,IV> 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 Map<IK,IV> externalToInternal(Map<EK,EV> external)
ConvertingCodecexternalToInternal in class ConvertingCodec<Map<EK,EV>,Map<IK,IV>>external - the value's external form.public Map<EK,EV> internalToExternal(Map<IK,IV> internal)
ConvertingCodecinternalToExternal in class ConvertingCodec<Map<EK,EV>,Map<IK,IV>>internal - the value's internal form.Copyright © 2017–2021 DataStax. All rights reserved.