public abstract class JsonNodeToGeometryCodec<T extends Geometry> extends JsonNodeConvertingCodec<T>
| Modifier and Type | Field and Description |
|---|---|
protected GeoFormat |
geoFormat |
protected ObjectMapper |
objectMapper |
internalCodec, javaType| Modifier | Constructor and Description |
|---|---|
protected |
JsonNodeToGeometryCodec(TypeCodec<T> targetCodec,
ObjectMapper objectMapper,
GeoFormat geoFormat,
List<String> nullStrings) |
| Modifier and Type | Method and Description |
|---|---|
T |
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(T 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).
|
protected abstract T |
parseGeometry(byte[] b) |
protected abstract T |
parseGeometry(String s) |
isNull, isNullOrEmptydecode, encode, format, getCqlType, getInternalCodec, getInternalJavaType, getJavaType, parseprotected final ObjectMapper objectMapper
protected final GeoFormat geoFormat
public T externalToInternal(JsonNode node)
ConvertingCodecexternalToInternal in class ConvertingCodec<JsonNode,T extends Geometry>node - the value's external form.protected abstract T parseGeometry(@NonNull byte[] b)
public JsonNode internalToExternal(T value)
ConvertingCodecinternalToExternal in class ConvertingCodec<JsonNode,T extends Geometry>value - the value's internal form.Copyright © 2017–2021 DataStax. All rights reserved.