public final class HashIndex extends Index
Constructor and Description |
---|
HashIndex(DataType dataType)
Specifies an instance of HashIndex class with specified DataType.
|
HashIndex(DataType dataType,
int precision)
Initializes a new instance of the HashIndex class with specified DataType and precision.
|
Modifier and Type | Method and Description |
---|---|
DataType |
getDataType()
Gets data type.
|
int |
getPrecision()
Gets precision.
|
HashIndex |
setDataType(DataType dataType)
Sets data type.
|
HashIndex |
setPrecision(int precision)
Sets precision.
|
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
public HashIndex(DataType dataType)
Here is an example to instantiate HashIndex class passing in the DataType:
HashIndex hashIndex = new HashIndex(DataType.STRING);
dataType
- the data type.public HashIndex(DataType dataType, int precision)
Here is an example to instantiate HashIndex class passing in the DataType:
HashIndex hashIndex = new HashIndex(DataType.STRING, 3);
dataType
- the data type.precision
- the precision.public DataType getDataType()
public HashIndex setDataType(DataType dataType)
dataType
- the data type.public int getPrecision()
public HashIndex setPrecision(int precision)
precision
- the precision.Copyright © 2020 Microsoft Corporation. All rights reserved.