iterator
Class PredEval

java.lang.Object
  extended byiterator.PredEval

public class PredEval
extends java.lang.Object


Constructor Summary
PredEval()
           
 
Method Summary
static boolean Eval(CondExpr[] p, Tuple t1, Tuple t2, AttrType[] in1, AttrType[] in2)
          predicate evaluate, according to the condition ConExpr, judge if the two tuple can join.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredEval

public PredEval()
Method Detail

Eval

public static boolean Eval(CondExpr[] p,
                           Tuple t1,
                           Tuple t2,
                           AttrType[] in1,
                           AttrType[] in2)
                    throws java.io.IOException,
                           UnknowAttrType,
                           InvalidTupleSizeException,
                           InvalidTypeException,
                           FieldNumberOutOfBoundException,
                           PredEvalException
predicate evaluate, according to the condition ConExpr, judge if the two tuple can join. if so, return true, otherwise false

Parameters:
t1 - compared tuple1
t2 - compared tuple2
Returns:
true or false
Throws:
java.io.IOException - some I/O error
UnknowAttrType - don't know the attribute type
InvalidTupleSizeException - size of tuple not valid
InvalidTypeException - type of tuple not valid
FieldNumberOutOfBoundException - field number exceeds limit
PredEvalException - exception from this method