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