Package org.apache.iceberg.types
Class Types.GeographyType
java.lang.Object
org.apache.iceberg.types.Type.PrimitiveType
org.apache.iceberg.types.Types.GeographyType
- All Implemented Interfaces:
Serializable,Type
- Enclosing class:
- Types
A geography type, optionally parameterized by a CRS and an edge-interpolation algorithm. The
default CRS is
OGC:CRS84 and the default algorithm is spherical.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.types.Type
Type.NestedType, Type.PrimitiveType, Type.TypeID -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncrs()static Types.GeographyTypecrs84()booleanTwo geography types are equal when their edge algorithms are equal and their CRS match case-insensitively, soOGC:CRS84andogc:crs84are equal.inthashCode()static Types.GeographyTypestatic Types.GeographyTypeof(String crs, EdgeAlgorithm algorithm) toString()typeId()Methods inherited from class org.apache.iceberg.types.Type.PrimitiveType
asPrimitiveType, isPrimitiveTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.iceberg.types.Type
asListType, asMapType, asNestedType, asStructType, asVariantType, isListType, isMapType, isNestedType, isStructType, isVariantType
-
Field Details
-
DEFAULT_CRS
- See Also:
-
DEFAULT_ALGORITHM
-
-
Method Details
-
crs84
-
of
-
of
-
typeId
-
crs
-
algorithm
-
equals
Two geography types are equal when their edge algorithms are equal and their CRS match case-insensitively, soOGC:CRS84andogc:crs84are equal.- Overrides:
equalsin classType.PrimitiveType
-
hashCode
public int hashCode()- Overrides:
hashCodein classType.PrimitiveType
-
toString
-