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 |
dataType()
Gets data type.
|
HashIndex |
dataType(DataType dataType)
Sets data type.
|
int |
precision()
Gets precision.
|
HashIndex |
precision(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 dataType()
public HashIndex dataType(DataType dataType)
dataType
- the data type.public int precision()
public HashIndex precision(int precision)
precision
- the precision.Copyright © 2019. All rights reserved.