Class GeoMesaOutputFormat
- java.lang.Object
-
- org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>
-
- org.locationtech.geomesa.jobs.interop.mapreduce.GeoMesaOutputFormat
-
public class GeoMesaOutputFormat extends org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>Output format for writing simple features to GeoMesa. The key will be ignored. SimpleFeatureTypes will be created in GeoMesa as needed based on the simple features passed. Configure using the static methods.
-
-
Constructor Summary
Constructors Constructor Description GeoMesaOutputFormat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)org.apache.hadoop.mapreduce.OutputCommittergetOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)static voidsetOutput(org.apache.hadoop.conf.Configuration conf, Map<String,String> dataStoreParams, org.geotools.api.feature.simple.SimpleFeatureType type)
-
-
-
Method Detail
-
getRecordWriter
public org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException- Specified by:
getRecordWriterin classorg.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>- Throws:
IOExceptionInterruptedException
-
checkOutputSpecs
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context) throws IOException, InterruptedException- Specified by:
checkOutputSpecsin classorg.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>- Throws:
IOExceptionInterruptedException
-
getOutputCommitter
public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException- Specified by:
getOutputCommitterin classorg.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,org.geotools.api.feature.simple.SimpleFeature>- Throws:
IOExceptionInterruptedException
-
-