public class SpatialOperationConfig extends SpatialConfig implements java.io.Serializable
Defines how a spatial operation should be performed
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_SPATIAL_EVAL_STAGE |
static java.lang.String |
PARAM_WD_DISTANCE |
static int |
VAL_SPATIAL_EVAL_STAGE_POST |
static int |
VAL_SPATIAL_EVAL_STAGE_PRE |
| Constructor and Description |
|---|
SpatialOperationConfig()
Creates a new instance
|
SpatialOperationConfig(SpatialOperationConfig spatialOpConf)
Creates a new instance copied from another one
|
SpatialOperationConfig(SpatialOperation op, JGeometry qryWindow, double tol)
Creates a new instance with the given parameters
|
SpatialOperationConfig(SpatialOperation op, JGeometry qryWindow, double tol, java.util.Map<java.lang.String,java.lang.Number> params)
Creates a new instance with the given parameters
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(java.lang.String paramName, java.lang.Number paramValue) |
java.lang.String |
getJsonQueryWindow()
Gets the query window as a geometry in GeoJSON format
|
SpatialOperation |
getOperation()
Gets the
SpatialOperation |
java.lang.Number |
getParam(java.lang.String paramName) |
java.lang.Number |
getParam(java.lang.String paramName, java.lang.Number defaultValue) |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Number>> |
getParams() |
JGeometry |
getQueryWindow()
Gets the query window used in the spatial operation
|
void |
load(Configuration conf)
Loads a spatial configuration from the job configuration
|
boolean |
load(int dataSetId, Configuration conf)
Loads a spatial configuration associated to a data set id from the job configuration
|
boolean |
load(java.lang.String tag, Configuration conf)
Loads a tagged spatial configuration from the job configuration
|
void |
setJsonQueryWindow(java.lang.String jsonQueryWindow)
Sets the query window as a geometry in GeoJSON format
|
void |
setOperation(SpatialOperation operation)
Sets the
SpatialOperation |
void |
setQueryWindow(JGeometry queryWindow)
Sets the query window used in the spatial operation
|
void |
setSpatialConfig(SpatialConfig spatialConf)
Sets a
SpatialOperation |
void |
store(Configuration conf)
Stores the current spatial configuration into the job configuration
|
void |
store(int dataSetId, Configuration conf)
Stores the current spatial configuration into the job configuration.
|
void |
store(java.lang.String tag, Configuration conf)
Stores the current spatial configuration into the job configuration.
|
java.lang.String |
toString() |
getBoundaries, getDimensions, getSrid, getTolerance, isGeodetic, setBoundaries, setDimensions, setGeodetic, setSrid, setTolerance, setUndefinedValuespublic static final java.lang.String PARAM_SPATIAL_EVAL_STAGE
public static final java.lang.String PARAM_WD_DISTANCE
public static final int VAL_SPATIAL_EVAL_STAGE_POST
public static final int VAL_SPATIAL_EVAL_STAGE_PRE
public SpatialOperationConfig()
public SpatialOperationConfig(SpatialOperationConfig spatialOpConf)
spatialOpConf - an instance which values will be copiedpublic SpatialOperationConfig(SpatialOperation op, JGeometry qryWindow, double tol)
op - a spatial operationqryWindow - query windowtol - tolerancepublic SpatialOperationConfig(SpatialOperation op, JGeometry qryWindow, double tol, java.util.Map<java.lang.String,java.lang.Number> params)
op - a spatial operationqryWindow - query windowtol - tolerance
public void addParam(java.lang.String paramName,
java.lang.Number paramValue)
public java.lang.String getJsonQueryWindow()
public SpatialOperation getOperation()
SpatialOperationSpatialOperationpublic java.lang.Number getParam(java.lang.String paramName)
public java.lang.Number getParam(java.lang.String paramName,
java.lang.Number defaultValue)
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Number>> getParams()
public JGeometry getQueryWindow()
public void load(Configuration conf)
SpatialConfigload in class SpatialConfigconf - the job configuration
public boolean load(int dataSetId,
Configuration conf)
SpatialConfigload in class SpatialConfig
public boolean load(java.lang.String tag,
Configuration conf)
SpatialConfigload in class SpatialConfigpublic void setJsonQueryWindow(java.lang.String jsonQueryWindow)
jsonQueryWindow - a GeoJSON geometrypublic void setOperation(SpatialOperation operation)
SpatialOperationoperation - a SpatialOperationpublic void setQueryWindow(JGeometry queryWindow)
queryWindow - a JGeometry instancepublic void setSpatialConfig(SpatialConfig spatialConf)
SpatialOperationspatialConf - a SpatialOperationpublic void store(Configuration conf)
SpatialConfigstore in class SpatialConfigconf - the job configuration
public void store(int dataSetId,
Configuration conf)
SpatialConfigstore in class SpatialConfig
public void store(java.lang.String tag,
Configuration conf)
SpatialConfigstore in class SpatialConfigpublic java.lang.String toString()
toString in class SpatialConfigCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.