Class 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 Detail

      • GeoMesaOutputFormat

        public GeoMesaOutputFormat()
    • 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:
        getRecordWriter in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,​org.geotools.api.feature.simple.SimpleFeature>
        Throws:
        IOException
        InterruptedException
      • checkOutputSpecs

        public void checkOutputSpecs​(org.apache.hadoop.mapreduce.JobContext context)
                              throws IOException,
                                     InterruptedException
        Specified by:
        checkOutputSpecs in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,​org.geotools.api.feature.simple.SimpleFeature>
        Throws:
        IOException
        InterruptedException
      • getOutputCommitter

        public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter​(org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                                       throws IOException,
                                                                              InterruptedException
        Specified by:
        getOutputCommitter in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,​org.geotools.api.feature.simple.SimpleFeature>
        Throws:
        IOException
        InterruptedException
      • setOutput

        public static void setOutput​(org.apache.hadoop.conf.Configuration conf,
                                     Map<String,​String> dataStoreParams,
                                     org.geotools.api.feature.simple.SimpleFeatureType type)