public class StringToUDTCodec extends StringConvertingCodec<UdtValue>
internalCodec, javaType| Constructor and Description |
|---|
StringToUDTCodec(ConvertingCodec<JsonNode,UdtValue> jsonCodec,
ObjectMapper objectMapper,
List<String> nullStrings) |
| Modifier and Type | Method and Description |
|---|---|
UdtValue |
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(UdtValue udt)
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 StringToUDTCodec(ConvertingCodec<JsonNode,UdtValue> jsonCodec, ObjectMapper objectMapper, List<String> nullStrings)
public UdtValue externalToInternal(String s)
ConvertingCodecexternalToInternal in class ConvertingCodec<String,UdtValue>s - the value's external form.public String internalToExternal(UdtValue udt)
ConvertingCodecinternalToExternal in class ConvertingCodec<String,UdtValue>udt - the value's internal form.Copyright © 2017–2021 DataStax. All rights reserved.