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.
|
HashIndex(org.json.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.
|
| Modifier and Type | Method and Description |
|---|---|
DataType |
getDataType()
Gets data type.
|
int |
getPrecision()
Gets precision.
|
void |
setDataType(DataType dataType)
Sets data type.
|
void |
setPrecision(int precision)
Sets precision.
|
getKind, Hash, Hash, Range, Range, Spatialget, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toStringpublic 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 HashIndex(String jsonString)
jsonString - the json string that represents the index.public HashIndex(org.json.JSONObject jsonObject)
jsonObject - the json object that represents the index.public DataType getDataType()
public void setDataType(DataType dataType)
dataType - the data type.public int getPrecision()
public void setPrecision(int precision)
precision - the precision.Copyright © 2018. All rights reserved.