public class POUserFunc extends ExpressionOperator
PhysicalOperator.OriginalLocation| Modifier and Type | Field and Description |
|---|---|
static byte |
FINAL |
static byte |
INITIAL |
static byte |
INTERMEDIATE |
alias, illustrator, input, inputAttached, inputs, lineageTracer, mBagFactory, mTupleFactory, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, RESULT_EMPTY, RESULT_EOP, resultType| Constructor and Description |
|---|
POUserFunc(OperatorKey k,
int rp,
java.util.List<PhysicalOperator> inp) |
POUserFunc(OperatorKey k,
int rp,
java.util.List<PhysicalOperator> inp,
FuncSpec funcSpec) |
POUserFunc(OperatorKey k,
int rp,
java.util.List<PhysicalOperator> inp,
FuncSpec funcSpec,
EvalFunc func) |
| Modifier and Type | Method and Description |
|---|---|
POUserFunc |
clone()
Make a deep copy of this operator.
|
boolean |
combinable() |
void |
finish() |
java.util.List<java.lang.String> |
getCacheFiles() |
java.util.List<ExpressionOperator> |
getChildExpressions()
Get child expression of this expression
|
org.apache.hadoop.security.Credentials |
getCredentials() |
java.lang.String |
getFinal() |
EvalFunc |
getFunc() |
FuncSpec |
getFuncSpec() |
java.lang.String |
getInitial() |
java.lang.String |
getIntermed() |
Result |
getNextBigDecimal() |
Result |
getNextBigInteger() |
Result |
getNextBoolean() |
Result |
getNextDataBag() |
Result |
getNextDataByteArray() |
Result |
getNextDateTime() |
Result |
getNextDouble() |
Result |
getNextFloat() |
Result |
getNextInteger() |
Result |
getNextLong() |
Result |
getNextMap() |
Result |
getNextString() |
Result |
getNextTuple() |
java.lang.reflect.Type |
getOriginalReturnType() |
PhysicalOperator |
getReferencedOperator() |
java.lang.reflect.Type |
getReturnType() |
java.util.List<java.lang.String> |
getShipFiles() |
java.lang.String |
getSignature() |
Tuple |
illustratorMarkup(java.lang.Object in,
java.lang.Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
java.lang.Boolean |
isAsynchronous() |
java.lang.String |
name() |
boolean |
needEndOfAllInputProcessing() |
Schema |
outputSchema(Schema input) |
Result |
processInput()
A generic method for parsing input that either returns the attached input
if it exists or fetches it from its predecessor.
|
void |
setAccumStart() |
void |
setAlgebraicFunction(byte Function) |
void |
setCacheFiles(java.util.List<java.lang.String> cf) |
void |
setCredentials(org.apache.hadoop.security.Credentials creds) |
void |
setFuncInputSchema() |
void |
setFuncInputSchema(java.lang.String signature)
Sets EvalFunc's inputschema based on the signature
|
void |
setFuncSpec(FuncSpec funcSpec) |
void |
setReferencedOperator(PhysicalOperator referencedOperator) |
void |
setResultType(byte resultType) |
void |
setShipFiles(java.util.List<java.lang.String> sf) |
void |
setSignature(java.lang.String signature) |
boolean |
supportsMultipleInputs()
Indicates whether this operator supports multiple inputs.
|
boolean |
supportsMultipleOutputs()
Indicates whether this operator supports multiple outputs.
|
void |
visit(PhyPlanVisitor v)
Visit this node with the provided visitor.
|
accumChild, containUDF, setIllustrator, toStringaddOriginalLocation, addOriginalLocation, attachInput, cloneHelper, clonePlans, copyAliasFrom, detachInput, getAlias, getAliasString, getIllustrator, getInputs, getLogger, getNext, getOriginalLocations, getParentPlan, getPigLogger, getReporter, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isEndOfAllInput, isInputAttached, reset, setAccumEnd, setAccumulative, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, staticDataCleanupcompareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, unsetProjectionMappublic static final byte INITIAL
public static final byte INTERMEDIATE
public static final byte FINAL
public POUserFunc(OperatorKey k, int rp, java.util.List<PhysicalOperator> inp)
public POUserFunc(OperatorKey k, int rp, java.util.List<PhysicalOperator> inp, FuncSpec funcSpec)
public POUserFunc(OperatorKey k, int rp, java.util.List<PhysicalOperator> inp, FuncSpec funcSpec, EvalFunc func)
public PhysicalOperator getReferencedOperator()
public void setReferencedOperator(PhysicalOperator referencedOperator)
public void setFuncInputSchema()
public Result processInput() throws ExecException
PhysicalOperatorprocessInput in class PhysicalOperatorExecExceptionpublic Result getNextTuple() throws ExecException
getNextTuple in class PhysicalOperatorExecExceptionpublic Result getNextDataBag() throws ExecException
getNextDataBag in class ExpressionOperatorExecExceptionpublic Result getNextInteger() throws ExecException
getNextInteger in class PhysicalOperatorExecExceptionpublic Result getNextBoolean() throws ExecException
getNextBoolean in class PhysicalOperatorExecExceptionpublic Result getNextDataByteArray() throws ExecException
getNextDataByteArray in class PhysicalOperatorExecExceptionpublic Result getNextDouble() throws ExecException
getNextDouble in class PhysicalOperatorExecExceptionpublic Result getNextBigInteger() throws ExecException
getNextBigInteger in class PhysicalOperatorExecExceptionpublic Result getNextBigDecimal() throws ExecException
getNextBigDecimal in class PhysicalOperatorExecExceptionpublic Result getNextFloat() throws ExecException
getNextFloat in class PhysicalOperatorExecExceptionpublic Result getNextLong() throws ExecException
getNextLong in class PhysicalOperatorExecExceptionpublic Result getNextDateTime() throws ExecException
getNextDateTime in class PhysicalOperatorExecExceptionpublic Result getNextMap() throws ExecException
getNextMap in class PhysicalOperatorExecExceptionpublic Result getNextString() throws ExecException
getNextString in class PhysicalOperatorExecExceptionpublic void setAlgebraicFunction(byte Function)
throws ExecException
ExecExceptionpublic java.lang.String getInitial()
throws ExecException
ExecExceptionpublic java.lang.String getIntermed()
throws ExecException
ExecExceptionpublic java.lang.String getFinal()
throws ExecException
ExecExceptionpublic java.lang.reflect.Type getOriginalReturnType()
throws ExecException
ExecExceptionpublic java.lang.reflect.Type getReturnType()
public void finish()
public java.lang.Boolean isAsynchronous()
public java.lang.String name()
name in class Operator<PhyPlanVisitor>public boolean supportsMultipleInputs()
OperatorsupportsMultipleInputs in class Operator<PhyPlanVisitor>public boolean supportsMultipleOutputs()
OperatorsupportsMultipleOutputs in class ExpressionOperatorpublic void visit(PhyPlanVisitor v) throws VisitorException
Operatorvisit in class ExpressionOperatorv - Visitor to visit with.VisitorException - if the visitor has a problem.public FuncSpec getFuncSpec()
public void setFuncSpec(FuncSpec funcSpec)
public java.util.List<java.lang.String> getCacheFiles()
public void setCacheFiles(java.util.List<java.lang.String> cf)
public java.util.List<java.lang.String> getShipFiles()
public void setShipFiles(java.util.List<java.lang.String> sf)
public boolean combinable()
public POUserFunc clone() throws java.lang.CloneNotSupportedException
ExpressionOperatorclone in class ExpressionOperatorjava.lang.CloneNotSupportedExceptionDo not use the clone method directly. Operators are cloned when logical plans
are cloned using {@link LogicalPlanCloner}public java.util.List<ExpressionOperator> getChildExpressions()
getChildExpressions in class ExpressionOperatorpublic void setAccumStart()
setAccumStart in class PhysicalOperatorpublic void setResultType(byte resultType)
setResultType in class PhysicalOperatorpublic Tuple illustratorMarkup(java.lang.Object in, java.lang.Object out, int eqClassIndex)
Illustrablein - input tupleout - output tuple before wrapped in ExampleTupleeqClassIndex - index into equivalence classes in illustratorpublic EvalFunc getFunc()
public java.lang.String getSignature()
public void setSignature(java.lang.String signature)
public void setFuncInputSchema(java.lang.String signature)
signature - public boolean needEndOfAllInputProcessing()
public org.apache.hadoop.security.Credentials getCredentials()
public void setCredentials(org.apache.hadoop.security.Credentials creds)
Copyright © 2007-2025 The Apache Software Foundation