ca.uwaterloo.cs.ql.fb
Class Relation

java.lang.Object
  extended by ca.uwaterloo.cs.ql.fb.Relation

public class Relation
extends java.lang.Object


Constructor Summary
Relation(Header header, TupleSet inputData)
           
Relation(Header header, TupleSet inputData, boolean reduce)
           
 
Method Summary
static Relation compose(Relation R1, Relation R2, Header h)
           
 TupleSet getBody()
           
 Header getHeader()
           
 int[] getHeaderIndexes(Header h)
           
static Relation project(Relation R, Header h)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Relation

public Relation(Header header,
                TupleSet inputData)

Relation

public Relation(Header header,
                TupleSet inputData,
                boolean reduce)
Method Detail

getHeader

public Header getHeader()

getBody

public TupleSet getBody()

getHeaderIndexes

public int[] getHeaderIndexes(Header h)

project

public static Relation project(Relation R,
                               Header h)
                        throws UnknownColumnException
Throws:
UnknownColumnException

compose

public static Relation compose(Relation R1,
                               Relation R2,
                               Header h)