public class JsonNodeToMapCodec<K,V> extends JsonNodeConvertingCodec<Map<K,V>>
internalCodec, javaType| Constructor and Description |
|---|
JsonNodeToMapCodec(TypeCodec<Map<K,V>> collectionCodec,
ConvertingCodec<String,K> keyCodec,
ConvertingCodec<JsonNode,V> valueCodec,
ObjectMapper objectMapper,
List<String> nullStrings) |
| Modifier and Type | Method and Description |
|---|---|
Map<K,V> |
externalToInternal(JsonNode node)
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).
|
JsonNode |
internalToExternal(Map<K,V> map)
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).
|
isNull, isNullOrEmptydecode, encode, format, getCqlType, getInternalCodec, getInternalJavaType, getJavaType, parsepublic JsonNodeToMapCodec(TypeCodec<Map<K,V>> collectionCodec, ConvertingCodec<String,K> keyCodec, ConvertingCodec<JsonNode,V> valueCodec, ObjectMapper objectMapper, List<String> nullStrings)
public Map<K,V> externalToInternal(JsonNode node)
ConvertingCodecexternalToInternal in class ConvertingCodec<JsonNode,Map<K,V>>node - the value's external form.public JsonNode internalToExternal(Map<K,V> map)
ConvertingCodecinternalToExternal in class ConvertingCodec<JsonNode,Map<K,V>>map - the value's internal form.Copyright © 2017–2021 DataStax. All rights reserved.