org.apache.pig.backend.local.executionengine
Class LocalPOStoreImpl

java.lang.Object
  extended by org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POStoreImpl
      extended by org.apache.pig.backend.local.executionengine.LocalPOStoreImpl

public class LocalPOStoreImpl
extends POStoreImpl

This class implements the behavior of a POStore in the local execution engine. It creates and manages the store function and the output stream of the store.


Constructor Summary
LocalPOStoreImpl(PigContext pc)
           
 
Method Summary
 void cleanUp()
          To perform cleanup when there is an error.
 StoreFunc createStoreFunc(FileSpec sFile, Schema schema)
          Set up the storer
 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

LocalPOStoreImpl

public LocalPOStoreImpl(PigContext pc)
Method Detail

createStoreFunc

public StoreFunc createStoreFunc(FileSpec sFile,
                                 Schema schema)
                          throws IOException
Description copied from class: POStoreImpl
Set up the storer

Specified by:
createStoreFunc in class POStoreImpl
Parameters:
sFile - - The file the store should write to
Throws:
IOException

tearDown

public void tearDown()
              throws IOException
Description copied from class: POStoreImpl
At the end of processing, the outputstream is closed using this method

Overrides:
tearDown in class POStoreImpl
Throws:
IOException

cleanUp

public void cleanUp()
             throws IOException
Description copied from class: POStoreImpl
To perform cleanup when there is an error. Uses the FileLocalizer method which only deletes the file but not the dirs created with it.

Overrides:
cleanUp in class POStoreImpl
Throws:
IOException


Copyright © ${year} The Apache Software Foundation