public class ListToUDTCodec<E> extends ConvertingCodec<List<E>,UdtValue>
internalCodec, javaType| Constructor and Description |
|---|
ListToUDTCodec(Class<List<E>> javaType,
TypeCodec<UdtValue> targetCodec,
List<ConvertingCodec<E,Object>> elementCodecs) |
| Modifier and Type | Method and Description |
|---|---|
UdtValue |
externalToInternal(List<E> 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).
|
List<E> |
internalToExternal(UdtValue tuple)
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 UdtValue externalToInternal(List<E> external)
ConvertingCodecexternalToInternal in class ConvertingCodec<List<E>,UdtValue>external - the value's external form.public List<E> internalToExternal(UdtValue tuple)
ConvertingCodecinternalToExternal in class ConvertingCodec<List<E>,UdtValue>tuple - the value's internal form.Copyright © 2017–2021 DataStax. All rights reserved.