public class SpatialIndexInputFormat
extends <any>
RTreeWritable value.SpatialOperationConfig.SpatialOperationConfig can be configured to be used only by this InputFormat by calling setFilterSpatialOperationConfig(SpatialOperationConfig, Configuration).SpatialOperation.AnyInteract will be performed taking as query window the boundaries defined in the SpatialConfig (if any).| Modifier and Type | Class and Description |
|---|---|
class |
SpatialIndexInputFormat.SpatialIndexRecordReader
Reads records from a spatial index split
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONF_DEFAULT_FILTER_OPERATION
Default spatial operation to be performed when there is not a
SpatialOperationConfig set. |
static java.lang.String |
CONF_NON_GEODETIC_FILTER
Boolean job configuration value.
|
static java.lang.String |
TAG_SPATIAL_INDEX_SPATIAL_OP_CONFIG
Tag used to identify an InputFormat-specific
SpatialOperationConfig in a job's configuration. |
| Constructor and Description |
|---|
SpatialIndexInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
static SpatialOperationConfig |
getFilterSpatialOperationConfig(Configuration conf)
Gets the
SpatialOperationConfig used to filter records for the given job's configuration. |
static SpatialOperationConfig |
getFilterSpatialOperationConfig(java.lang.Integer dataSetId, Configuration conf)
Gets the
SpatialOperationConfig used to filter records for the given job's configuration and data set. |
<any> |
getRecordReader(InputSplit split, JobConf job, Reporter reporter) |
static void |
setFilterSpatialOperationConfig(SpatialOperationConfig spatialOpConf, Configuration conf)
Sets an input-format specific
SpatialOperationConfig. |
static void |
setFilterSpatialOperationConfig(SpatialOperationConfig spatialOpConf, java.lang.Integer dataSetId, Configuration conf)
Sets an input-format-dataset specific
SpatialOperationConfig. |
public static final java.lang.String CONF_DEFAULT_FILTER_OPERATION
SpatialOperationConfig set.public static final java.lang.String CONF_NON_GEODETIC_FILTER
public static final java.lang.String TAG_SPATIAL_INDEX_SPATIAL_OP_CONFIG
SpatialOperationConfig in a job's configuration.public static SpatialOperationConfig getFilterSpatialOperationConfig(Configuration conf)
SpatialOperationConfig used to filter records for the given job's configuration.conf - the job configuration.SpatialOperationConfig instancepublic static SpatialOperationConfig getFilterSpatialOperationConfig(java.lang.Integer dataSetId, Configuration conf)
SpatialOperationConfig used to filter records for the given job's configuration and data set.dataSetId - the data set id as assigned by MultipleInputsConfigconf - the job configurationSpatialOperationConfig instance
public <any> getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
throws java.io.IOException
java.io.IOExceptionpublic static void setFilterSpatialOperationConfig(SpatialOperationConfig spatialOpConf, Configuration conf)
SpatialOperationConfig.spatialOpConf - a spatial operation configuration defining how the data should be spatially filtered.conf - the job's configuration.public static void setFilterSpatialOperationConfig(SpatialOperationConfig spatialOpConf, java.lang.Integer dataSetId, Configuration conf)
SpatialOperationConfig. Used when there are multiple input data sets that use SpatialIndexInputFormat with different filter requirements.spatialOpConf - a spatial operation configuration defining how the data should be spatially filtered.dataSetId - the data set id as assigned by MultipleInputsConfigconf - the job's configurationCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.