|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.impl.eval.EvalSpec
org.apache.pig.impl.eval.FuncEvalSpec
public class FuncEvalSpec
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.pig.impl.eval.EvalSpec |
---|
EvalSpec.UserComparator |
Field Summary |
---|
Fields inherited from class org.apache.pig.impl.eval.EvalSpec |
---|
inner, properties |
Constructor Summary | |
---|---|
FuncEvalSpec(FunctionInstantiator fInstantiaor,
String funcName,
EvalSpec args)
|
Method Summary | |
---|---|
boolean |
combinable()
|
EvalSpec |
getArgs()
|
EvalFunc |
getFunc()
Extend the default deserialization |
String |
getFuncName()
|
List<String> |
getFuncs()
Get the functions required by this spec |
Type |
getReturnType()
|
void |
instantiateFunc(FunctionInstantiator instantiaor)
|
boolean |
isAsynchronous()
Some specs may be asynchronous, i.e., they return before completing the processing fully. |
protected Schema |
mapInputSchema(Schema schema)
Given an input schema, determine the output schema of this spec as it operates on input tuples with the input schema. |
void |
resetFuncToFinal()
This will replace the function to be called by this spec to be the final instance instead of the general instance. |
void |
resetFuncToInitial()
This will replace the function to be called by this spec to be the initial instance instead of the general instance. |
void |
resetFuncToIntermediate()
This will replace the function to be called by this spec to be the intermediate instance instead of the general instance. |
void |
setArgs(EvalSpec a)
|
protected DataCollector |
setupDefaultPipe(Properties properties,
DataCollector endOfPipe)
set up a default data processing pipe for processing by this spec This pipe does not include unflattening/flattening at the end |
String |
toString()
|
void |
visit(EvalSpecVisitor v)
|
Methods inherited from class org.apache.pig.impl.eval.EvalSpec |
---|
addSpec, copy, finish, getCombiner, getComparator, getComparatorName, getLineage, getOutputSchemaForPipe, getProperties, isFlattened, isInner, setComparatorName, setFlatten, setInner, setLineageTracer, setSchema, setupPipe, simpleEval |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FuncEvalSpec(FunctionInstantiator fInstantiaor, String funcName, EvalSpec args) throws IOException
IOException
Method Detail |
---|
public void instantiateFunc(FunctionInstantiator instantiaor) throws IOException
instantiateFunc
in class EvalSpec
IOException
public List<String> getFuncs()
EvalSpec
getFuncs
in class EvalSpec
protected Schema mapInputSchema(Schema schema)
EvalSpec
mapInputSchema
in class EvalSpec
protected DataCollector setupDefaultPipe(Properties properties, DataCollector endOfPipe)
EvalSpec
setupDefaultPipe
in class EvalSpec
properties
- properties for the pipeendOfPipe
- The collector where output is desired
public String toString()
toString
in class Object
public EvalFunc getFunc()
in
-
IOException
ClassNotFoundException
public Type getReturnType()
public boolean isAsynchronous()
EvalSpec
isAsynchronous
in class EvalSpec
public void visit(EvalSpecVisitor v)
visit
in class EvalSpec
public String getFuncName()
public EvalSpec getArgs()
public void setArgs(EvalSpec a)
public void resetFuncToInitial()
public void resetFuncToIntermediate()
public void resetFuncToFinal()
finalTuplePos
- position in the tuple handed to the final
function that it should use.public boolean combinable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |