HashIndex 类

定义

Represents a hash index in the Azure Cosmos DB database service.

public class HashIndex extends Index
继承
java.lang.Object
Serializable
HashIndex

继承成员

构造函数

HashIndex(DataType dataType)

Specifies an instance of HashIndex class with specified DataType.

Here is an example to instantiate HashIndex class passing in the DataType:

HashIndex hashIndex = new HashIndex(DataType.String);
</code></pre></p>

HashIndex(DataType dataType, int precision)

Initializes a new instance of the HashIndex class with specified DataType and precision.

Here is an example to instantiate HashIndex class passing in the DataType:

HashIndex hashIndex = new HashIndex(DataType.String, 3);
</code></pre></p>

HashIndex(JSONObject jsonObject)

Initializes a new instance of the HashIndex class with json object.

HashIndex(String jsonString)

Initializes a new instance of the HashIndex class with json string.

方法

getDataType()

Gets data type.

getPrecision()

Gets precision.

setDataType(DataType dataType)

Sets data type.

setPrecision(int precision)

Sets precision.

适用于