|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POStoreImpl
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReducePOStoreImpl
public class MapReducePOStoreImpl
This class is used to have a POStore write to DFS via a output collector/record writer. It sets up a modified job configuration to force a write to a specific subdirectory of the main output directory. This is done so that multiple output directories can be used in the same job.
| Constructor Summary | |
|---|---|
MapReducePOStoreImpl(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context)
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
To perform cleanup when there is an error. |
StoreFuncInterface |
createStoreFunc(POStore store)
Set up the storer |
void |
incrRecordCounter(String name,
long incr)
|
void |
tearDown()
At the end of processing, the outputstream is closed using this method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapReducePOStoreImpl(org.apache.hadoop.mapreduce.TaskInputOutputContext<?,?,?,?> context)
| Method Detail |
|---|
public StoreFuncInterface createStoreFunc(POStore store)
throws IOException
POStoreImpl
createStoreFunc in class POStoreImplstore - - the POStore object
IOException
public void tearDown()
throws IOException
POStoreImpl
tearDown in class POStoreImplIOException
public void cleanUp()
throws IOException
POStoreImpl
cleanUp in class POStoreImplIOException
public void incrRecordCounter(String name,
long incr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||