Package org.elasticsearch.common.geo
Enum GeoShapeType
- java.lang.Object
-
- java.lang.Enum<GeoShapeType>
-
- org.elasticsearch.common.geo.GeoShapeType
-
- All Implemented Interfaces:
Serializable,Comparable<GeoShapeType>
public enum GeoShapeType extends Enum<GeoShapeType>
Enumeration that lists allGeoShapeTypes that can be parsed and indexed
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CIRCLEENVELOPEGEOMETRYCOLLECTIONLINESTRINGMULTILINESTRINGMULTIPOINTMULTIPOLYGONPOINTPOLYGON
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static GeoShapeTypeforName(String geoshapename)abstract ShapeBuilder<?,?,?>getBuilder(CoordinateNode coordinates, DistanceUnit.Distance radius, ShapeBuilder.Orientation orientation, boolean coerce)static List<NamedWriteableRegistry.Entry>getShapeWriteables()StringshapeName()StringtoString()static GeoShapeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static GeoShapeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.StringwktName()wkt shape name
-
-
-
Enum Constant Detail
-
POINT
public static final GeoShapeType POINT
-
MULTIPOINT
public static final GeoShapeType MULTIPOINT
-
LINESTRING
public static final GeoShapeType LINESTRING
-
MULTILINESTRING
public static final GeoShapeType MULTILINESTRING
-
POLYGON
public static final GeoShapeType POLYGON
-
MULTIPOLYGON
public static final GeoShapeType MULTIPOLYGON
-
ENVELOPE
public static final GeoShapeType ENVELOPE
-
CIRCLE
public static final GeoShapeType CIRCLE
-
GEOMETRYCOLLECTION
public static final GeoShapeType GEOMETRYCOLLECTION
-
-
Method Detail
-
values
public static GeoShapeType[] 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 (GeoShapeType c : GeoShapeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeoShapeType 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
-
shapeName
public String shapeName()
-
forName
public static GeoShapeType forName(String geoshapename)
-
getBuilder
public abstract ShapeBuilder<?,?,?> getBuilder(CoordinateNode coordinates, DistanceUnit.Distance radius, ShapeBuilder.Orientation orientation, boolean coerce)
-
wktName
public String wktName()
wkt shape name
-
getShapeWriteables
public static List<NamedWriteableRegistry.Entry> getShapeWriteables()
-
toString
public String toString()
- Overrides:
toStringin classEnum<GeoShapeType>
-
-