Class AvroJobInitialiser
- java.lang.Object
-
- uk.gov.gchq.gaffer.hdfs.operation.handler.job.initialiser.AvroJobInitialiser
-
- All Implemented Interfaces:
JobInitialiser
public class AvroJobInitialiser extends Object implements JobInitialiser
AJobInitialiser
that initialises the providedJob
to handle Avro input data.
-
-
Constructor Summary
Constructors Constructor Description AvroJobInitialiser()
AvroJobInitialiser(String avroSchemaFilePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAvroSchemaFilePath()
void
initialiseJob(org.apache.hadoop.mapreduce.Job job, MapReduce operation, Store store)
Initialises a job.void
setAvroSchemaFilePath(String avroSchemaFilePath)
-
-
-
Constructor Detail
-
AvroJobInitialiser
public AvroJobInitialiser()
-
AvroJobInitialiser
public AvroJobInitialiser(String avroSchemaFilePath)
-
-
Method Detail
-
initialiseJob
public void initialiseJob(org.apache.hadoop.mapreduce.Job job, MapReduce operation, Store store) throws IOException
Description copied from interface:JobInitialiser
Initialises a job. This will probably involve setting up the job configuration.- Specified by:
initialiseJob
in interfaceJobInitialiser
- Parameters:
job
- theJob
to be initialisedoperation
- theMapReduce
containing configuration.store
- theStore
that will handle theOperation
- Throws:
IOException
- if IO issues occur
-
getAvroSchemaFilePath
public String getAvroSchemaFilePath()
-
setAvroSchemaFilePath
public void setAvroSchemaFilePath(String avroSchemaFilePath)
-
-