Class Indexes
java.lang.Object
com.microsoft.azure.management.cosmosdb.Indexes
The indexes for the path.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondataType()
Get the datatype for which the indexing behavior is applied to.kind()
Get indicates the type of index.Get the precision of the index.withDataType
(DataType dataType) Set the datatype for which the indexing behavior is applied to.Set indicates the type of index.withPrecision
(Integer precision) Set the precision of the index.
-
Constructor Details
-
Indexes
public Indexes()
-
-
Method Details
-
dataType
Get the datatype for which the indexing behavior is applied to. Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon'.- Returns:
- the dataType value
-
withDataType
Set the datatype for which the indexing behavior is applied to. Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon'.- Parameters:
dataType
- the dataType value to set- Returns:
- the Indexes object itself.
-
precision
Get the precision of the index. -1 is maximum precision.- Returns:
- the precision value
-
withPrecision
Set the precision of the index. -1 is maximum precision.- Parameters:
precision
- the precision value to set- Returns:
- the Indexes object itself.
-
kind
Get indicates the type of index. Possible values include: 'Hash', 'Range', 'Spatial'.- Returns:
- the kind value
-
withKind
Set indicates the type of index. Possible values include: 'Hash', 'Range', 'Spatial'.- Parameters:
kind
- the kind value to set- Returns:
- the Indexes object itself.
-