public final class RangeIndex extends Index
Constructor and Description |
---|
RangeIndex(DataType dataType)
Initializes a new instance of the RangeIndex class with specified DataType.
|
RangeIndex(DataType dataType,
int precision)
Initializes a new instance of the RangeIndex class with specified DataType and precision.
|
RangeIndex(org.json.JSONObject jsonObject)
Initializes a new instance of the RangeIndex class with json object.
|
RangeIndex(String jsonString)
Initializes a new instance of the RangeIndex 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, Spatial
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toString
public RangeIndex(DataType dataType)
Here is an example to instantiate RangeIndex class passing in the DataType:
RangeIndex rangeIndex = new RangeIndex(DataType.Number);
dataType
- the data type.public RangeIndex(DataType dataType, int precision)
RangeIndex rangeIndex = new RangeIndex(DataType.Number, -1);
dataType
- the data type of the RangeIndexprecision
- the precision of the RangeIndexpublic RangeIndex(String jsonString)
jsonString
- the json string that represents the index.public RangeIndex(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.