SpatialIndex Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. Index - com.
microsoft. azure. documentdb. SpatialIndex
- com.
- com.
- com.
public final class SpatialIndex
extends Index
Represents a spatial index in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
SpatialIndex(DataType dataType) |
Initializes a new instance of the Spatial |
SpatialIndex(String jsonString) |
Initializes a new instance of the Spatial |
SpatialIndex(JSONObject jsonObject) |
Initializes a new instance of the Spatial |
Method Summary
Modifier and Type | Method and Description |
---|---|
Data |
getDataType()
Gets data type. |
void |
setDataType(DataType dataType)
Sets data type. |
Methods inherited from Index
Methods inherited from JsonSerializable
Methods inherited from java.lang.Object
Constructor Details
SpatialIndex
public SpatialIndex(DataType dataType)
Initializes a new instance of the SpatialIndex class.
Here is an example to instantiate SpatialIndex class passing in the DataType
SpatialIndex spatialIndex = new SpatialIndex(DataType.Point);
Parameters:
SpatialIndex
public SpatialIndex(String jsonString)
Initializes a new instance of the SpatialIndex class.
Parameters:
SpatialIndex
public SpatialIndex(JSONObject jsonObject)
Initializes a new instance of the SpatialIndex class.
Parameters:
Method Details
getDataType
public DataType getDataType()
Gets data type.
Returns:
setDataType
public void setDataType(DataType dataType)
Sets data type.
Parameters: