Class DataType

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

public final class DataType extends com.azure.core.util.ExpandableStringEnum<DataType>
The datatype for which the indexing behavior is applied to.
  • Field Details

    • STRING

      public static final DataType STRING
      Static value String for DataType.
    • NUMBER

      public static final DataType NUMBER
      Static value Number for DataType.
    • POINT

      public static final DataType POINT
      Static value Point for DataType.
    • POLYGON

      public static final DataType POLYGON
      Static value Polygon for DataType.
    • LINE_STRING

      public static final DataType LINE_STRING
      Static value LineString for DataType.
    • MULTI_POLYGON

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

  • Method Details

    • fromString

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

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