org.apache.pig.impl.logicalLayer
Class LOUserFunc

java.lang.Object
  extended by org.apache.pig.impl.plan.Operator<LOVisitor>
      extended by org.apache.pig.impl.logicalLayer.LogicalOperator
          extended by org.apache.pig.impl.logicalLayer.ExpressionOperator
              extended by org.apache.pig.impl.logicalLayer.LOUserFunc
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Operator>

public class LOUserFunc
extends ExpressionOperator

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.pig.impl.logicalLayer.ExpressionOperator
mFieldSchema, mIsFieldSchemaComputed
 
Fields inherited from class org.apache.pig.impl.logicalLayer.LogicalOperator
mAlias, mIsProjectionMapComputed, mIsSchemaComputed, mPinnedOptions, mPlan, mProjectionMap, mRequestedParallelism, mSchema, mType
 
Fields inherited from class org.apache.pig.impl.plan.Operator
mKey
 
Constructor Summary
LOUserFunc(LogicalPlan plan, OperatorKey k, FuncSpec funcSpec, byte returnType)
           
 
Method Summary
protected  Object clone()
           
 List<ExpressionOperator> getArguments()
           
 Schema.FieldSchema getFieldSchema()
           
 FuncSpec getFuncSpec()
           
 Schema getSchema()
          Get a copy of the schema for the output of this operator.
 String name()
           
 void setFuncSpec(FuncSpec funcSpec)
           
 boolean supportsMultipleInputs()
          Indicates whether this operator supports multiple inputs.
 void visit(LOVisitor v)
          Visit this node with the provided visitor.
 
Methods inherited from class org.apache.pig.impl.logicalLayer.ExpressionOperator
getType, regenerateFieldSchema, setFieldSchema, supportsMultipleOutputs, unsetFieldSchema
 
Methods inherited from class org.apache.pig.impl.logicalLayer.LogicalOperator
forceSchema, getAlias, getOperatorKey, getPlan, getRequestedParallelism, isPinnedOption, pinOption, reconcileSchema, regenerateSchema, setAlias, setCanonicalNames, setPlan, setRequestedParallelism, setSchema, setSchemaComputed, setType, toString, unsetSchema
 
Methods inherited from class org.apache.pig.impl.plan.Operator
compareTo, equals, getProjectionMap, hashCode, regenerateProjectionMap, rewire, unsetProjectionMap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LOUserFunc

public LOUserFunc(LogicalPlan plan,
                  OperatorKey k,
                  FuncSpec funcSpec,
                  byte returnType)
Parameters:
plan - LogicalPlan this operator is a part of.
k - OperatorKey for this operator.
funcSpec - name of the user defined function.
returnType - return type of this function.
Method Detail

getFuncSpec

public FuncSpec getFuncSpec()

getArguments

public List<ExpressionOperator> getArguments()

supportsMultipleInputs

public boolean supportsMultipleInputs()
Description copied from class: Operator
Indicates whether this operator supports multiple inputs.

Specified by:
supportsMultipleInputs in class Operator<LOVisitor>
Returns:
true if it does, otherwise false.

name

public String name()
Specified by:
name in class Operator<LOVisitor>

getSchema

public Schema getSchema()
Description copied from class: LogicalOperator
Get a copy of the schema for the output of this operator.

Overrides:
getSchema in class ExpressionOperator

getFieldSchema

public Schema.FieldSchema getFieldSchema()
                                  throws FrontendException
Overrides:
getFieldSchema in class ExpressionOperator
Throws:
FrontendException

visit

public void visit(LOVisitor v)
           throws VisitorException
Description copied from class: LogicalOperator
Visit this node with the provided visitor. This should only be called by the visitor class itself, never directly.

Specified by:
visit in class LogicalOperator
Parameters:
v - Visitor to visit with.
Throws:
VisitorException - if the visitor has a problem.

setFuncSpec

public void setFuncSpec(FuncSpec funcSpec)
Parameters:
funcSpec - the FuncSpec to set

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class ExpressionOperator
Throws:
CloneNotSupportedException
See Also:
Do not use the clone method directly. Operators are cloned when logical plans are cloned using {@link LogicalPlanCloner}


Copyright © ${year} The Apache Software Foundation