org.apache.pig.data
Class SchemaTupleClassGenerator

java.lang.Object
  extended by org.apache.pig.data.SchemaTupleClassGenerator

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class SchemaTupleClassGenerator
extends Object

This class encapsulates the generation of SchemaTuples, as well as some logic around shipping code to the distributed cache.


Nested Class Summary
static class SchemaTupleClassGenerator.GenContext
          The GenContext mechanism provides a level of control in where SchemaTupleFactories are used.
 
Method Summary
protected static void generateSchemaTuple(Schema s, boolean appendable, int id, File codeDir, SchemaTupleClassGenerator.GenContext... contexts)
          This class actually generates the code for a given Schema.
protected static int getNextGlobalClassIdentifier()
           
protected static void resetGlobalClassIdentifier()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resetGlobalClassIdentifier

protected static void resetGlobalClassIdentifier()

generateSchemaTuple

protected static void generateSchemaTuple(Schema s,
                                          boolean appendable,
                                          int id,
                                          File codeDir,
                                          SchemaTupleClassGenerator.GenContext... contexts)
This class actually generates the code for a given Schema.

Parameters:
s - as Schema
appendable - as boolean, true or false depending on whether it should be appendable
id - as int, id means identifier
contexts - which are a list of contexts in which the SchemaTuple is intended to be instantiated

getNextGlobalClassIdentifier

protected static int getNextGlobalClassIdentifier()


Copyright © 2007-2012 The Apache Software Foundation