unity.operators
Class MergeSort

java.lang.Object
  extended by unity.operators.Operator
      extended by unity.operators.MergeSort

public class MergeSort
extends Operator


Constructor Summary
MergeSort(Operator in, int bsize, int bfr, SortComparator sc)
           
 
Method Summary
 void close()
           
 void init()
           
 Tuple next()
           
 java.lang.String toString()
           
 
Methods inherited from class unity.operators.Operator
getOutputRelation, getPageIOs, getPagesRead, getTupleIOs, getTuplesOutput, getTuplesRead, hasNext, isBuffered, printTree, setOutputRelation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MergeSort

public MergeSort(Operator in,
                 int bsize,
                 int bfr,
                 SortComparator sc)
Method Detail

init

public void init()
          throws java.io.IOException,
                 java.io.FileNotFoundException
Specified by:
init in class Operator
Throws:
java.io.IOException
java.io.FileNotFoundException

next

public Tuple next()
           throws java.io.IOException,
                  java.io.FileNotFoundException
Specified by:
next in class Operator
Throws:
java.io.IOException
java.io.FileNotFoundException

close

public void close()
           throws java.io.IOException
Overrides:
close in class Operator
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object