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

java.lang.Object
  extended by org.apache.hadoop.zebra.pig.comparator.ComparatorExpr
      extended by org.apache.hadoop.zebra.pig.comparator.LeafExpr
          extended by org.apache.hadoop.zebra.pig.comparator.FixedLengthPrimitive
Direct Known Subclasses:
BooleanExpr, ByteExpr, DoubleExpr, FloatExpr, IntExpr, LongExpr, ShortExpr

public abstract class FixedLengthPrimitive
extends LeafExpr

Helper class for fixed length primitives


Field Summary
protected  byte[] bytes
           
 
Constructor Summary
protected FixedLengthPrimitive(int index, int length)
          Constructor
 
Method Summary
protected  void appendObject(org.apache.hadoop.zebra.pig.comparator.EncodingOutputStream out, Object o)
           
protected abstract  void convertValue(byte[] b, Object o)
           
protected  boolean implicitBound()
           
 
Methods inherited from class org.apache.hadoop.zebra.pig.comparator.LeafExpr
append, appendLeafGenerator, getType, illustrate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bytes

protected byte[] bytes
Constructor Detail

FixedLengthPrimitive

protected FixedLengthPrimitive(int index,
                               int length)
Constructor

Parameters:
index -
length -
Method Detail

convertValue

protected abstract void convertValue(byte[] b,
                                     Object o)

appendObject

protected void appendObject(org.apache.hadoop.zebra.pig.comparator.EncodingOutputStream out,
                            Object o)
Specified by:
appendObject in class LeafExpr

implicitBound

protected boolean implicitBound()
Specified by:
implicitBound in class LeafExpr


Copyright © ${year} The Apache Software Foundation