Enum GeometryType
- java.lang.Object
-
- java.lang.Enum<GeometryType>
-
- org.apache.pinot.segment.local.utils.GeometryType
-
- All Implemented Interfaces:
Serializable,Comparable<GeometryType>,java.lang.constant.Constable
public enum GeometryType extends Enum<GeometryType>
The geometry type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GEOMETRY_COLLECTIONLINE_STRINGMULTI_LINE_STRINGMULTI_POINTMULTI_POLYGONPOINTPOLYGON
-
Method Summary
Modifier and Type Method Description static GeometryTypefromID(int id)Constructs the serialization type from the idStringgetName()intid()booleanisMultiType()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.- 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()
-
getName
public String getName()
-
id
public int id()
- Returns:
- the id of the serialization type
-
fromID
public static GeometryType fromID(int id)
Constructs the serialization type from the id- Parameters:
id- id of the serialization type- Returns:
- the serialization type
-
-