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

      • GeoMesaAccumuloInputFormat

        public GeoMesaAccumuloInputFormat()
    • Method Detail

      • getSplits

        public List<org.apache.hadoop.mapreduce.InputSplit> getSplits​(org.apache.hadoop.mapreduce.JobContext context)
                                                               throws IOException,
                                                                      InterruptedException
        Specified by:
        getSplits in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,​org.geotools.api.feature.simple.SimpleFeature>
        Throws:
        IOException
        InterruptedException
      • 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:
        createRecordReader in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,​org.geotools.api.feature.simple.SimpleFeature>
        Throws:
        IOException
        InterruptedException
      • configure

        public static void configure​(org.apache.hadoop.mapreduce.Job job,
                                     Map<String,​String> dataStoreParams,
                                     org.geotools.api.data.Query query)