你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SpatialIndex 类
- java.
lang. Object - JsonSerializable
- Index
- com.
microsoft. azure. cosmosdb. SpatialIndex
- com.
public class SpatialIndex extends Index
表示 Azure Cosmos DB 数据库服务中的空间索引。
构造函数摘要
构造函数 | 说明 |
---|---|
SpatialIndex(DataType dataType) |
初始化 SpatialIndex 类的新实例。 下面是实例化传入 DataType 的 SpatialIndex 类的示例 |
SpatialIndex(String jsonString) |
初始化 SpatialIndex 类的新实例。 |
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
Data |
getDataType()
获取数据类型。 |
void |
setDataType(DataType dataType)
设置数据类型。 |
继承成员
JsonSerializable.get(String propertyName)
JsonSerializable.getBoolean(String propertyName)
JsonSerializable.getCollection(String propertyName)
JsonSerializable.getDouble(String propertyName)
JsonSerializable.getHashMap()
JsonSerializable.getInt(String propertyName)
Index.getKind()
JsonSerializable.getLogger()
JsonSerializable.getLong(String propertyName)
JsonSerializable.getMapper()
JsonSerializable.getObject(String propertyName)
JsonSerializable.getObjectByPath(List<String> propertyNames)
JsonSerializable.getString(String propertyName)
JsonSerializable.has(String propertyName)
Index.Hash(DataType dataType)
Index.Hash(DataType dataType, int precision)
Index.Index(IndexKind indexKind)
Index.Index(String jsonString, IndexKind indexKind)
JsonSerializable.JsonSerializable()
JsonSerializable.JsonSerializable(String jsonString, ObjectMapper objectMapper)
JsonSerializable.JsonSerializable(String jsonString)
Index.Range(DataType dataType)
Index.Range(DataType dataType, int precision)
JsonSerializable.remove(String propertyName)
Index.Spatial(DataType dataType)
JsonSerializable.toJson()
JsonSerializable.toJson(SerializationFormattingPolicy formattingPolicy)
JsonSerializable.toString()
构造函数详细信息
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
- 数据类型。
适用于