Class GeoMesaAccumuloInputFormat
- java.lang.Object
-
- org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>
-
- org.locationtech.geomesa.accumulo.jobs.mapreduce.interop.GeoMesaAccumuloInputFormat
-
public class GeoMesaAccumuloInputFormat extends org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>Input format that will read simple features from GeoMesa based on a CQL query. The key will be the feature ID. Configure using the static methods.
-
-
Constructor Summary
Constructors Constructor Description GeoMesaAccumuloInputFormat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidconfigure(org.apache.hadoop.mapreduce.Job job, Map<String,String> dataStoreParams, org.geotools.api.data.Query query)org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context)List<org.apache.hadoop.mapreduce.InputSplit>getSplits(org.apache.hadoop.mapreduce.JobContext context)
-
-
-
Method Detail
-
getSplits
public List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context) throws IOException, InterruptedException
- Specified by:
getSplitsin classorg.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>- Throws:
IOExceptionInterruptedException
-
createRecordReader
public org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException- Specified by:
createRecordReaderin classorg.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>- Throws:
IOExceptionInterruptedException
-
-