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, setUndefinedValues
public 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
- tolerancepublic void addParam(java.lang.String paramName, java.lang.Number paramValue)
public java.lang.String getJsonQueryWindow()
public SpatialOperation getOperation()
SpatialOperation
SpatialOperation
public 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)
SpatialConfig
load
in class SpatialConfig
conf
- the job configurationpublic boolean load(int dataSetId, Configuration conf)
SpatialConfig
load
in class SpatialConfig
public boolean load(java.lang.String tag, Configuration conf)
SpatialConfig
load
in class SpatialConfig
public void setJsonQueryWindow(java.lang.String jsonQueryWindow)
jsonQueryWindow
- a GeoJSON geometrypublic void setOperation(SpatialOperation operation)
SpatialOperation
operation
- a SpatialOperation
public void setQueryWindow(JGeometry queryWindow)
queryWindow
- a JGeometry instancepublic void setSpatialConfig(SpatialConfig spatialConf)
SpatialOperation
spatialConf
- a SpatialOperation
public void store(Configuration conf)
SpatialConfig
store
in class SpatialConfig
conf
- the job configurationpublic void store(int dataSetId, Configuration conf)
SpatialConfig
store
in class SpatialConfig
public void store(java.lang.String tag, Configuration conf)
SpatialConfig
store
in class SpatialConfig
public java.lang.String toString()
toString
in class SpatialConfig
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.