org.apache.hadoop.zebra.pig.comparator
Class LeafExpr

java.lang.Object
  extended by org.apache.hadoop.zebra.pig.comparator.ComparatorExpr
      extended by org.apache.hadoop.zebra.pig.comparator.LeafExpr
Direct Known Subclasses:
BagExpr, BytesExpr, FixedLengthPrimitive, StringExpr

public abstract class LeafExpr
extends ComparatorExpr

Base class of comparator expressions that are the leaves of the expression tree.


Constructor Summary
protected LeafExpr(int index)
          Constructor
 
Method Summary
protected  void append(org.apache.hadoop.zebra.pig.comparator.EncodingOutputStream out, Tuple tuple)
           
protected  void appendLeafGenerator(List<LeafGenerator> list, int el, int cel, boolean c, boolean explicitBound)
           
protected abstract  void appendObject(org.apache.hadoop.zebra.pig.comparator.EncodingOutputStream out, Object object)
           
protected abstract  String getType()
           
protected  void illustrate(PrintStream out, int escapeLevel, int comescLevel, boolean complement)
          Default illustrator for leaf expressions.
protected abstract  boolean implicitBound()
           
protected  void toString(PrintStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeafExpr

protected LeafExpr(int index)
Constructor

Parameters:
index - tuple position index
Method Detail

illustrate

protected void illustrate(PrintStream out,
                          int escapeLevel,
                          int comescLevel,
                          boolean complement)
Default illustrator for leaf expressions.

Parameters:
out -
escapeLevel -
comescLevel -
complement -

append

protected void append(org.apache.hadoop.zebra.pig.comparator.EncodingOutputStream out,
                      Tuple tuple)
               throws ExecException
Throws:
ExecException

appendObject

protected abstract void appendObject(org.apache.hadoop.zebra.pig.comparator.EncodingOutputStream out,
                                     Object object)
                              throws ExecException
Throws:
ExecException

getType

protected abstract String getType()

implicitBound

protected abstract boolean implicitBound()

appendLeafGenerator

protected void appendLeafGenerator(List<LeafGenerator> list,
                                   int el,
                                   int cel,
                                   boolean c,
                                   boolean explicitBound)
Specified by:
appendLeafGenerator in class ComparatorExpr

toString

protected void toString(PrintStream out)
Specified by:
toString in class ComparatorExpr


Copyright © ${year} The Apache Software Foundation