@ThreadSafe public class LineStringCodec extends GeometryCodec<LineString>
LineString
instances in driver.
If you use DseSessionBuilder
to build your cluster,
it will automatically register this codec.
Constructor and Description |
---|
LineStringCodec() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Class<?> javaClass) |
boolean |
accepts(Object value) |
protected LineString |
fromWellKnownBinary(ByteBuffer bb)
Creates an instance of a geospatial type from its Well-known Binary
(WKB) representation.
|
protected LineString |
fromWellKnownText(String source)
Creates an instance of this codec's geospatial type from its Well-known Text (WKT) representation.
|
DataType |
getCqlType() |
GenericType<LineString> |
getJavaType() |
protected ByteBuffer |
toWellKnownBinary(LineString geometry)
Returns a Well-known
Binary (WKB) representation of the given geospatial object.
|
protected String |
toWellKnownText(LineString geometry)
Returns a Well-known Text (WKT)
representation of the given geospatial object.
|
decode, encode, format, parse
@NonNull public GenericType<LineString> getJavaType()
@NonNull protected LineString fromWellKnownText(@NonNull String source)
GeometryCodec
fromWellKnownText
in class GeometryCodec<LineString>
source
- the Well-known Text representation to parse. Cannot be null.public boolean accepts(@NonNull Class<?> javaClass)
public boolean accepts(@NonNull Object value)
@NonNull protected LineString fromWellKnownBinary(@NonNull ByteBuffer bb)
GeometryCodec
fromWellKnownBinary
in class GeometryCodec<LineString>
bb
- the Well-known Binary representation to parse. Cannot be null.@NonNull protected String toWellKnownText(@NonNull LineString geometry)
GeometryCodec
toWellKnownText
in class GeometryCodec<LineString>
geometry
- the geospatial object to convert. Cannot be null.@NonNull protected ByteBuffer toWellKnownBinary(@NonNull LineString geometry)
GeometryCodec
toWellKnownBinary
in class GeometryCodec<LineString>
geometry
- the geospatial object to convert. Cannot be null.@NonNull public DataType getCqlType()
Copyright © 2017–2019. All rights reserved.