public class JsonNodeToUDTCodec extends JsonNodeConvertingCodec<UdtValue>
internalCodec, javaType| Constructor and Description |
|---|
JsonNodeToUDTCodec(TypeCodec<UdtValue> udtCodec,
Map<CqlIdentifier,ConvertingCodec<JsonNode,Object>> fieldCodecs,
ObjectMapper objectMapper,
List<String> nullStrings,
boolean allowExtraFields,
boolean allowMissingFields) |
| Modifier and Type | Method and Description |
|---|---|
UdtValue |
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(UdtValue value)
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 JsonNodeToUDTCodec(TypeCodec<UdtValue> udtCodec, Map<CqlIdentifier,ConvertingCodec<JsonNode,Object>> fieldCodecs, ObjectMapper objectMapper, List<String> nullStrings, boolean allowExtraFields, boolean allowMissingFields)
public UdtValue externalToInternal(JsonNode node)
ConvertingCodecexternalToInternal in class ConvertingCodec<JsonNode,UdtValue>node - the value's external form.public JsonNode internalToExternal(UdtValue value)
ConvertingCodecinternalToExternal in class ConvertingCodec<JsonNode,UdtValue>value - the value's internal form.Copyright © 2017–2021 DataStax. All rights reserved.