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.

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>

public HashIndex(DataType dataType)

参数

dataType
DataType

the data type.

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>

public HashIndex(DataType dataType, int precision)

参数

dataType
DataType

the data type.

precision
int

the precision.

HashIndex(JSONObject jsonObject)

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

public HashIndex(JSONObject jsonObject)

参数

jsonObject
JSONObject

the json object that represents the index.

HashIndex(String jsonString)

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

public HashIndex(String jsonString)

参数

jsonString
String

the json string that represents the index.

适用于