T
- the type the eval function returnspublic abstract class ContextualEvalFunc<T>
extends org.apache.pig.EvalFunc<T>
Constructor and Description |
---|
ContextualEvalFunc() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Properties |
getContextProperties()
Helper method to return the context properties for this class
|
protected java.lang.String |
getInstanceName() |
protected java.util.Properties |
getInstanceProperties()
Helper method to return the context properties for this instance of this class
|
protected void |
onReady(org.apache.pig.impl.logicalLayer.schema.Schema in_schema,
org.apache.pig.impl.logicalLayer.schema.Schema out_schema)
Hook method, called once the input and output schema are prepared.
|
org.apache.pig.impl.logicalLayer.schema.Schema |
outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema in_schema)
Override outputSchema only to add the onSchemaReady hook method.
|
void |
setUDFContextSignature(java.lang.String signature) |
allowCompileTimeCalculation, exec, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, warn
public void setUDFContextSignature(java.lang.String signature)
setUDFContextSignature
in class org.apache.pig.EvalFunc<T>
protected java.util.Properties getContextProperties()
protected java.util.Properties getInstanceProperties()
protected java.lang.String getInstanceName()
setUDFContextSignature(String)
protected void onReady(org.apache.pig.impl.logicalLayer.schema.Schema in_schema, org.apache.pig.impl.logicalLayer.schema.Schema out_schema)
in_schema
- input schemaout_schema
- output schemapublic org.apache.pig.impl.logicalLayer.schema.Schema outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema in_schema)
outputSchema
in class org.apache.pig.EvalFunc<T>
in_schema
- input schema