public interface Geometry
Row row = dseSession.execute("SELECT coords FROM points_of_interest WHERE name = 'Eiffel Tower'").one(); Point coords = row.get("coords", Point.class);The default implementations returned by the driver are immutable and serializable. If you write your own implementations, they should at least be thread-safe; serializability is not mandatory, but recommended for use with some 3rd-party tools like Apache Spark ™.
Modifier and Type | Method and Description |
---|---|
String |
asGeoJson()
Returns a JSON representation of this geospatial type.
|
ByteBuffer |
asWellKnownBinary()
Returns a Well-known
Binary (WKB) representation of this geospatial type.
|
String |
asWellKnownText()
Returns a Well-known Text (WKT)
representation of this geospatial type.
|
boolean |
contains(Geometry other)
Tests whether this geospatial type instance contains another instance.
|
@NonNull String asWellKnownText()
@NonNull ByteBuffer asWellKnownBinary()
Note that, due to DSE implementation details, the resulting byte buffer always uses little-endian order, regardless of the platform's native order.
@NonNull String asGeoJson()
boolean contains(@NonNull Geometry other)
other
- the other instance.this
contains other
.Copyright © 2017–2024. All rights reserved.