public class BooleanToNumberCodec<INTERNAL extends Number> extends ConvertingCodec<Boolean,INTERNAL>
internalCodec, javaType| Constructor and Description |
|---|
BooleanToNumberCodec(TypeCodec<INTERNAL> targetCodec,
List<BigDecimal> booleanNumbers) |
| Modifier and Type | Method and Description |
|---|---|
INTERNAL |
externalToInternal(Boolean value)
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).
|
Boolean |
internalToExternal(INTERNAL 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).
|
decode, encode, format, getCqlType, getInternalCodec, getInternalJavaType, getJavaType, parsepublic BooleanToNumberCodec(TypeCodec<INTERNAL> targetCodec, List<BigDecimal> booleanNumbers)
public INTERNAL externalToInternal(Boolean value)
ConvertingCodecexternalToInternal in class ConvertingCodec<Boolean,INTERNAL extends Number>value - the value's external form.public Boolean internalToExternal(INTERNAL value)
ConvertingCodecinternalToExternal in class ConvertingCodec<Boolean,INTERNAL extends Number>value - the value's internal form.Copyright © 2017–2021 DataStax. All rights reserved.