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 |
getDataType()
Gets data type.
|
int |
getPrecision()
Gets precision.
|
RangeIndex |
setDataType(DataType dataType)
Sets data type.
|
RangeIndex |
setPrecision(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 getDataType()
public RangeIndex setDataType(DataType dataType)
dataType
- the data type.public int getPrecision()
public RangeIndex setPrecision(int precision)
precision
- the precision.Copyright © 2020 Microsoft Corporation. All rights reserved.