|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.data.SchemaTupleFrontend
public class SchemaTupleFrontend
This class is to be used at job creation time. It provides the API that lets code register Schemas with pig to be generated. It is necessary to register these Schemas and reducers.
Constructor Summary | |
---|---|
SchemaTupleFrontend()
|
Method Summary | |
---|---|
static void |
copyAllGeneratedToDistributedCache(PigContext pigContext,
org.apache.hadoop.conf.Configuration conf)
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. |
protected static void |
lazyReset(PigContext pigContext)
This is a method which caches a PigContext object that has had relevant key values set by SchemaTupleBackend. |
static int |
registerToGenerateIfPossible(Schema udfSchema,
boolean isAppendable,
SchemaTupleClassGenerator.GenContext context)
This method "registers" a Schema to be generated. |
static void |
reset()
This allows the frontend/backend process to be repeated if on the same JVM (as in testing). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaTupleFrontend()
Method Detail |
---|
public static void reset()
public static int registerToGenerateIfPossible(Schema udfSchema, boolean isAppendable, SchemaTupleClassGenerator.GenContext context)
udfSchema
- This is the Schema of a Tuple that we will potentially generateisAppendable
- This specifies whether or not we want the SchemaTuple to be appendablecontext
- This is the context in which users should be able to access the SchemaTuple
public static void copyAllGeneratedToDistributedCache(PigContext pigContext, org.apache.hadoop.conf.Configuration conf)
pigContext
- conf
- protected static void lazyReset(PigContext pigContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |