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.
|
Modifier and Type | Method and Description |
---|---|
DataType |
dataType()
Gets data type.
|
RangeIndex |
dataType(DataType dataType)
Sets data type.
|
int |
precision()
Gets precision.
|
RangeIndex |
precision(int precision)
Sets precision.
|
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, 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 DataType dataType()
public RangeIndex dataType(DataType dataType)
dataType
- the data type.public int precision()
public RangeIndex precision(int precision)
precision
- the precision.Copyright © 2019. All rights reserved.