This method "registers" a Schema to be generated. It allows a portions of the code
to register a Schema for generation without knowing whether code generation is enabled.
A unique ID will be passed back that can be used internally to refer to generated SchemaTuples
(such as in the case of serialization and deserialization). The context is necessary to allow
the client to restrict where generated code can be used.
udfSchema - This is the Schema of a Tuple that we will potentially generate
isAppendable - This specifies whether or not we want the SchemaTuple to be appendable
context - This is the context in which users should be able to access the SchemaTuple
public static void copyAllGeneratedToDistributedCache(PigContext pigContext,
This must be called when the code has been generated and the generated code needs to be shipped
to the cluster, so that it may be used by the mappers and reducers.
This is a method which caches a PigContext object that has had
relevant key values set by SchemaTupleBackend. This is necessary
because in some cases, multiple cycles of jobs might run in the JVM,
but the PigContext object may be shared, so we want to make sure to
undo any changes we have made to it.