Interface Geometry
-
- All Known Subinterfaces:
LineString,Point,Polygon
@Deprecated public interface Geometry
Deprecated.Retained for local geometry value compatibility. DSE geometry codecs and Graph execution are no longer supported.The driver-side representation for a DSE geospatial type.Point coords = Point.fromCoordinates(2.2945, 48.8584); String text = coords.asWellKnownText();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 ™.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringasGeoJson()Deprecated.Returns a JSON representation of this geospatial type.ByteBufferasWellKnownBinary()Deprecated.Returns a Well-known Binary (WKB) representation of this geospatial type.StringasWellKnownText()Deprecated.Returns a Well-known Text (WKT) representation of this geospatial type.booleancontains(Geometry other)Deprecated.Tests whether this geospatial type instance contains another instance.
-
-
-
Method Detail
-
asWellKnownText
@NonNull String asWellKnownText()
Deprecated.Returns a Well-known Text (WKT) representation of this geospatial type.
-
asWellKnownBinary
@NonNull ByteBuffer asWellKnownBinary()
Deprecated.Returns a Well-known Binary (WKB) representation of this geospatial type.Note that, due to DSE implementation details, the resulting byte buffer always uses little-endian order, regardless of the platform's native order.
-
asGeoJson
@NonNull String asGeoJson()
Deprecated.Returns a JSON representation of this geospatial type.
-
contains
boolean contains(@NonNull Geometry other)Deprecated.Tests whether this geospatial type instance contains another instance.- Parameters:
other- the other instance.- Returns:
- whether
thiscontainsother.
-
-