public abstract class Geometry extends Object implements Serializable
DseCluster.Builder
registers codecs
for those types, so that
they can be used transparently in queries:
Row row = dseSession.execute("SELECT coords FROM points_of_interest WHERE name = 'Eiffel Tower'").one(); Point coords = row.get("coords", Point.class); dseSession.execute("INSERT INTO points_of_interest (name, coords) VALUES (?, ?)", "Washington Monument", new Point(38.8895, 77.0352));
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.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public String asWellKnownText()
public ByteBuffer asWellKnownBinary()
public String asGeoJson()
public boolean contains(Geometry other)
other
- the other instance.this
contains other
.Copyright © 2012–2017. All rights reserved.