org.apache.pig.impl.logicalLayer
Class LORegexp

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.BinaryExpressionOperator
                  extended by org.apache.pig.impl.logicalLayer.LORegexp
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Operator>

public class LORegexp
extends BinaryExpressionOperator

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, mIsSchemaComputed, mPlan, mRequestedParallelism, mSchema, mType
 
Fields inherited from class org.apache.pig.impl.plan.Operator
mKey
 
Constructor Summary
LORegexp(LogicalPlan plan, OperatorKey key, ExpressionOperator operand, ExpressionOperator regexp)
           
 
Method Summary
 Schema.FieldSchema getFieldSchema()
           
 ExpressionOperator getOperand()
           
 String getRegexp()
           
 Schema getSchema()
          Get a copy of the schema for the output of this operator.
 String name()
           
 void setOperand(ExpressionOperator op)
           
 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.BinaryExpressionOperator
clone, getLhsOperand, getRhsOperand, setLhsOperand, setRhsOperand
 
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, reconcileSchema, regenerateSchema, setAlias, setCanonicalNames, setPlan, setRequestedParallelism, setSchema, setSchemaComputed, setType, toString, unsetSchema
 
Methods inherited from class org.apache.pig.impl.plan.Operator
compareTo, equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LORegexp

public LORegexp(LogicalPlan plan,
                OperatorKey key,
                ExpressionOperator operand,
                ExpressionOperator regexp)
Parameters:
plan - Logical plan this operator is a part of.
key - Operator key to assign to this node.
operand - input expression to be tested against
regexp - regular expression to match
Method Detail

getOperand

public ExpressionOperator getOperand()

setOperand

public void setOperand(ExpressionOperator op)

getRegexp

public String getRegexp()

name

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

supportsMultipleInputs

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

Overrides:
supportsMultipleInputs in class BinaryExpressionOperator
Returns:
true if it does, otherwise false.

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.

Overrides:
visit in class BinaryExpressionOperator
Parameters:
v - Visitor to visit with.
Throws:
VisitorException - if the visitor has a problem.


Copyright © ${year} The Apache Software Foundation