Index.Hash 方法

定义

重载

Hash(DataType dataType)

Returns an instance of HashIndex class with specified DataType.

Here is an example to create HashIndex instance passing in the DataType:

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

Hash(DataType dataType, int precision)

Returns an instance of HashIndex class with specified DataType and precision.

Here is an example to create HashIndex instance passing in the DataType and precision:

HashIndex hashIndex = Index.Hash(DataType.String, 3);

Hash(DataType dataType)

Returns an instance of HashIndex class with specified DataType.

Here is an example to create HashIndex instance passing in the DataType:

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

public static HashIndex Hash(DataType dataType)

参数

dataType
DataType

specifies the target data type for the index path specification.

返回

an instance of HashIndex type.

Hash(DataType dataType, int precision)

Returns an instance of HashIndex class with specified DataType and precision.

Here is an example to create HashIndex instance passing in the DataType and precision:

HashIndex hashIndex = Index.Hash(DataType.String, 3);

public static HashIndex Hash(DataType dataType, int precision)

参数

dataType
DataType

specifies the target data type for the index path specification.

precision
int

specifies the precision to be used for the data type associated with this index.

返回

an instance of HashIndex type.

适用于