Class Geography
- java.lang.Object
-
- com.snowflake.snowpark_java.types.Geography
-
- All Implemented Interfaces:
java.io.Serializable
public class Geography extends java.lang.Object implements java.io.SerializableJava representation of Snowflake Geography data.- Since:
- 0.8.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringasGeoJSON()Converts this Geography object to a GeoJSON string.booleanequals(java.lang.Object other)Checks whether two Geography object are equal.static GeographyfromGeoJSON(java.lang.String g)Creates a Geography object from a GeoJSON string.inthashCode()Calculates the hash code of this Geography Object.java.lang.StringtoString()Converts this Geography object to a String value.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
Checks whether two Geography object are equal.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- A Geography object- Returns:
- true if these two object are equal
-
hashCode
public int hashCode()
Calculates the hash code of this Geography Object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- An int number representing the hash code value
- Since:
- 0.9.0
-
asGeoJSON
public java.lang.String asGeoJSON()
Converts this Geography object to a GeoJSON string.- Returns:
- A GeoJSON string.
- Since:
- 0.8.0
-
toString
public java.lang.String toString()
Converts this Geography object to a String value. alias ofasGeoJsonfunction.- Overrides:
toStringin classjava.lang.Object- Returns:
- A String value.
-
fromGeoJSON
public static Geography fromGeoJSON(java.lang.String g)
Creates a Geography object from a GeoJSON string.- Parameters:
g- GeoJSON String- Returns:
- a new Geography object
- Since:
- 0.8.0
-
-