iterator
Class Projection

java.lang.Object
  extended byiterator.Projection

public class Projection
extends java.lang.Object

Jtuple has the appropriate types. Jtuple already has its setHdr called to setup its vital stas.


Constructor Summary
Projection()
           
 
Method Summary
static void Join(Tuple t1, AttrType[] type1, Tuple t2, AttrType[] type2, Tuple Jtuple, FldSpec[] perm_mat, int nOutFlds)
          Tuple t1 and Tuple t2 will be joined, and the result will be stored in Tuple Jtuple,before calling this mehtod.
static void Project(Tuple t1, AttrType[] type1, Tuple Jtuple, FldSpec[] perm_mat, int nOutFlds)
          Tuple t1 will be projected the result will be stored in Tuple Jtuple
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Projection

public Projection()
Method Detail

Join

public static void Join(Tuple t1,
                        AttrType[] type1,
                        Tuple t2,
                        AttrType[] type2,
                        Tuple Jtuple,
                        FldSpec[] perm_mat,
                        int nOutFlds)
                 throws UnknowAttrType,
                        FieldNumberOutOfBoundException,
                        java.io.IOException
Tuple t1 and Tuple t2 will be joined, and the result will be stored in Tuple Jtuple,before calling this mehtod. we know that this two tuple can join in the common field

Parameters:
t1 - The Tuple will be joined with t2
t2 - The Tuple will be joined with t1
Jtuple - the returned Tuple
nOutFlds - number of outer relation field
Throws:
UnknowAttrType - attrbute type does't match
FieldNumberOutOfBoundException - field number exceeds limit
java.io.IOException - some I/O fault

Project

public static void Project(Tuple t1,
                           AttrType[] type1,
                           Tuple Jtuple,
                           FldSpec[] perm_mat,
                           int nOutFlds)
                    throws UnknowAttrType,
                           WrongPermat,
                           FieldNumberOutOfBoundException,
                           java.io.IOException
Tuple t1 will be projected the result will be stored in Tuple Jtuple

Parameters:
t1 - The Tuple will be projected
Jtuple - the returned Tuple
nOutFlds - number of outer relation field
Throws:
UnknowAttrType - attrbute type doesn't match
WrongPermat - wrong FldSpec argument
FieldNumberOutOfBoundException - field number exceeds limit
java.io.IOException - some I/O fault