This method is called by the Pig runtime in the front end to convert the
output location to an absolute path if the location is relative. The
StoreFuncInterface implementation is free to choose how it converts a relative
location to an absolute location since this may depend on what the location
string represent (hdfs path or some other data source).
The static method LoadFunc.getAbsolutePath(java.lang.String,org.apache.hadoop.fs.Path) provides a default
implementation for hdfs and hadoop local file system and it can be used
to implement this method.

Parameters:

location location as provided in the "store" statement of the script

curDir the current working direction based on any "cd" statements
in the script before the "store" statement. If there are no "cd" statements
in the script, this would be the home directory -

Set the schema for data to be stored. This will be called on the
front end during planning if the store is associated with a schema.
A Store function should implement this function to
check that a given schema is acceptable to it. For example, it
can check that the correct partition keys are included;
a storage function to be written directly to an OutputFormat can
make sure the schema will translate in a well defined way.

Parameters:

s to be checked

Throws:

java.io.IOException if this schema is not acceptable. It should include
a detailed error message indicating what is wrong with the schema.

This method will be called by Pig both in the front end and back end to
pass a unique signature to the StoreFuncInterface which it can use to store
information in the org.apache.pig.impl.util.UDFContext which it needs to store between
various method invocations in the front end and back end. This is necessary
because in a Pig Latin script with multiple stores, the different
instances of store functions need to be able to find their (and only their)
data in the UDFContext object.

This method will be called by Pig if the job which contains this store
fails. Implementations can clean up output locations in this method to
ensure that no incorrect/incomplete results are left in the output location

This method will be called by Pig if the job which contains this store
is successful, and some cleanup of intermediate resources is required.
Implementations can clean up output locations in this method to
ensure that no incorrect/incomplete results are left in the output location