iterator
Class Projection
java.lang.Object
iterator.Projection
- public class Projection
- extends java.lang.Object
Jtuple has the appropriate types.
Jtuple already has its setHdr called to setup its vital stas.
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 |
Projection
public Projection()
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 t2t2
- The Tuple will be joined with t1Jtuple
- the returned TuplenOutFlds
- 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 projectedJtuple
- the returned TuplenOutFlds
- 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