Class SpatialType

java.lang.Object
com.azure.core.util.ExpandableStringEnum<SpatialType>
com.azure.resourcemanager.cosmos.models.SpatialType
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class SpatialType extends com.azure.core.util.ExpandableStringEnum<SpatialType>
Indicates the spatial type of index.
  • Field Details

    • POINT

      public static final SpatialType POINT
      Static value Point for SpatialType.
    • LINE_STRING

      public static final SpatialType LINE_STRING
      Static value LineString for SpatialType.
    • POLYGON

      public static final SpatialType POLYGON
      Static value Polygon for SpatialType.
    • MULTI_POLYGON

      public static final SpatialType MULTI_POLYGON
      Static value MultiPolygon for SpatialType.
  • Constructor Details

    • SpatialType

      @Deprecated public SpatialType()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of SpatialType value.
  • Method Details

    • fromString

      public static SpatialType fromString(String name)
      Creates or finds a SpatialType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding SpatialType.
    • values

      public static Collection<SpatialType> values()
      Gets known SpatialType values.
      Returns:
      known SpatialType values.