public final class SpatialIndex extends Index
| Constructor and Description |
|---|
SpatialIndex(DataType dataType)
Initializes a new instance of the SpatialIndex class.
|
SpatialIndex(org.json.JSONObject jsonObject)
Initializes a new instance of the SpatialIndex class.
|
SpatialIndex(String jsonString)
Initializes a new instance of the SpatialIndex class.
|
| Modifier and Type | Method and Description |
|---|---|
DataType |
getDataType()
Gets data type.
|
void |
setDataType(DataType dataType)
Sets data type.
|
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 SpatialIndex(DataType dataType)
Here is an example to instantiate SpatialIndex class passing in the DataType
SpatialIndex spatialIndex = new SpatialIndex(DataType.Point);
dataType - specifies the target data type for the index path specification.public SpatialIndex(String jsonString)
jsonString - the json string that represents the index.public SpatialIndex(org.json.JSONObject jsonObject)
jsonObject - the json object that represents the index.Copyright © 2018. All rights reserved.