public class RasterJob
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | gdalPathSet | 
| protected org.apache.hadoop.mapreduce.Job | job | 
| protected java.util.logging.Logger | log | 
| Constructor and Description | 
|---|
| RasterJob(org.apache.hadoop.conf.Configuration config)Job constructor using a previously existing configuration | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | execute(java.lang.String jobName, java.lang.Class<? extends org.apache.hadoop.mapreduce.InputFormat> inputFormat, java.lang.Class executingClass, java.lang.Class<? extends org.apache.hadoop.mapreduce.Mapper> mapperClass, java.lang.Class<? extends org.apache.hadoop.mapreduce.Reducer> reducerClass, java.lang.Class mapOutputValue, java.lang.Class mapOutputKey, java.lang.Class outputValue, java.lang.Class outputKey, java.lang.String outputPath)Executes this job, using the received configuration params | 
| org.apache.hadoop.mapreduce.Job | getHadoopJob()Job´s getter | 
protected org.apache.hadoop.mapreduce.Job job
protected boolean gdalPathSet
protected java.util.logging.Logger log
public RasterJob(org.apache.hadoop.conf.Configuration config)
config - job configuration with previously loaded properties.public org.apache.hadoop.mapreduce.Job getHadoopJob()
public final boolean execute(java.lang.String jobName,
                             java.lang.Class<? extends org.apache.hadoop.mapreduce.InputFormat> inputFormat,
                             java.lang.Class executingClass,
                             java.lang.Class<? extends org.apache.hadoop.mapreduce.Mapper> mapperClass,
                             java.lang.Class<? extends org.apache.hadoop.mapreduce.Reducer> reducerClass,
                             java.lang.Class mapOutputValue,
                             java.lang.Class mapOutputKey,
                             java.lang.Class outputValue,
                             java.lang.Class outputKey,
                             java.lang.String outputPath)
                      throws java.lang.Exception
jobName - name of this jobinputFormat - InputFormat class for this jobexecutingClass - name of the class containing the map and reduce classes for this jobmapperClass - name of the mapper classreducerClass - name of the reducer classmapOutputValue - mapper´s output value classmapOutputKey - mapper´s output key classoutputValue - reducer´s output value classoutputKey - reducer´s output key classoutputPath - hdfs output path for this job resultsjava.lang.Exception - whenever there is a problem during the execution of this job.Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.