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).| Constructor and Description |
|---|
SpatialIndexInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
<any> |
createRecordReader(InputSplit split, TaskAttemptContext context) |
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. |
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 <any> createRecordReader(InputSplit split,
TaskAttemptContext context)
throws java.io.IOException
java.io.IOExceptionpublic 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 instancepublic 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.