public class JsonNodeToLongCodec extends JsonNodeConvertingCodec<N>
internalCodec, javaType| Constructor and Description |
|---|
JsonNodeToLongCodec(PrimitiveLongCodec targetCodec,
FastThreadLocal<NumberFormat> numberFormat,
OverflowStrategy overflowStrategy,
RoundingMode roundingMode,
TemporalFormat temporalFormat,
ZoneId timeZone,
TimeUnit timeUnit,
ZonedDateTime epoch,
Map<String,Boolean> booleanStrings,
List<BigDecimal> booleanNumbers,
List<String> nullStrings) |
| Modifier and Type | Method and Description |
|---|---|
Long |
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(Long 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 JsonNodeToLongCodec(PrimitiveLongCodec targetCodec, FastThreadLocal<NumberFormat> numberFormat, OverflowStrategy overflowStrategy, RoundingMode roundingMode, TemporalFormat temporalFormat, ZoneId timeZone, TimeUnit timeUnit, ZonedDateTime epoch, Map<String,Boolean> booleanStrings, List<BigDecimal> booleanNumbers, List<String> nullStrings)
public Long externalToInternal(JsonNode node)
ConvertingCodecexternalToInternal in class ConvertingCodec<JsonNode,Long>node - the value's external form.public JsonNode internalToExternal(Long value)
ConvertingCodecinternalToExternal in class ConvertingCodec<JsonNode,Long>value - the value's internal form.Copyright © 2017–2021 DataStax. All rights reserved.