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

SpatialIndex 类

public class SpatialIndex extends Index

表示 Azure Cosmos DB 数据库服务中的空间索引。

构造函数摘要

构造函数 说明
SpatialIndex(DataType dataType)

初始化 SpatialIndex 类的新实例。

下面是实例化传入 DataType 的 SpatialIndex 类的示例

              
              SpatialIndex spatialIndex = new SpatialIndex (DataType.Point) ;
</code></pre></p>

SpatialIndex(String jsonString)

初始化 SpatialIndex 类的新实例。

方法摘要

修饰符和类型 方法和描述
DataType getDataType()

获取数据类型。

void setDataType(DataType dataType)

设置数据类型。

继承成员

构造函数详细信息

SpatialIndex

public SpatialIndex(DataType dataType)

初始化 SpatialIndex 类的新实例。

下面是实例化传入 DataType 的 SpatialIndex 类的示例

              
              SpatialIndex spatialIndex = new SpatialIndex (DataType.Point) ;
</code></pre></p>

参数:

dataType - 指定索引路径规范的目标数据类型。

SpatialIndex

public SpatialIndex(String jsonString)

初始化 SpatialIndex 类的新实例。

参数:

jsonString - 表示索引的 json 字符串。

方法详细信息

getDataType

public DataType getDataType()

获取数据类型。

返回:

数据类型。

setDataType

public void setDataType(DataType dataType)

设置数据类型。

参数:

dataType - 数据类型。

适用于