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