RangeIndex 类

定义

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

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

继承成员

构造函数

RangeIndex(DataType dataType)

Initializes a new instance of the RangeIndex class with specified DataType.

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

RangeIndex rangeIndex = new RangeIndex(DataType.Number);
</code></pre></p>

RangeIndex(DataType dataType, int precision)

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

RangeIndex rangeIndex = new RangeIndex(DataType.Number, -1);
</code></pre></p>
RangeIndex(JSONObject jsonObject)

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

RangeIndex(String jsonString)

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

方法

getDataType()

Gets data type.

getPrecision()

Gets precision.

setDataType(DataType dataType)

Sets data type.

setPrecision(int precision)

Sets precision.

适用于