Package io.trino.geospatial
Enum GeometryType
- java.lang.Object
-
- java.lang.Enum<GeometryType>
-
- io.trino.geospatial.GeometryType
-
- All Implemented Interfaces:
Serializable,Comparable<GeometryType>
public enum GeometryType extends Enum<GeometryType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GEOMETRY_COLLECTIONLINE_STRINGMULTI_LINE_STRINGMULTI_POINTMULTI_POLYGONPOINTPOLYGON
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeometryTypegetForEsriGeometryType(String type)static GeometryTypegetForJtsGeometryType(String type)booleanisMultitype()io.airlift.slice.SlicestandardName()static GeometryTypevalueOf(String name)Returns the enum constant of this type with the specified name.static GeometryType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POINT
public static final GeometryType POINT
-
MULTI_POINT
public static final GeometryType MULTI_POINT
-
LINE_STRING
public static final GeometryType LINE_STRING
-
MULTI_LINE_STRING
public static final GeometryType MULTI_LINE_STRING
-
POLYGON
public static final GeometryType POLYGON
-
MULTI_POLYGON
public static final GeometryType MULTI_POLYGON
-
GEOMETRY_COLLECTION
public static final GeometryType GEOMETRY_COLLECTION
-
-
Method Detail
-
values
public static GeometryType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GeometryType c : GeometryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeometryType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isMultitype
public boolean isMultitype()
-
standardName
public io.airlift.slice.Slice standardName()
-
getForEsriGeometryType
public static GeometryType getForEsriGeometryType(String type)
-
getForJtsGeometryType
public static GeometryType getForJtsGeometryType(String type)
-
-