你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: