SORT HEADER FILE ---------------- #ifndef __SORT__ #define __SORT__ #include "pq_defs.h" #include "pnode.defs.h" #include "pnode.SplayNode.h" #include "pnode.SplayPQ.h" #include "iterator.h" #include "io_bufs.h" #include "fileIspoof.h" #define FLOAT_MIN 1.0e-25 #define FLOAT_MAX 1.0e+25 class Sort : public Iterator { private: public: Sort(AttrType in[], // Array containing field types of R. int len_in, // # of columns in R. short str_sizes[], Iterator *am, // access method for left input to join. int fld_no, // the field number of the field to sort on. TupleOrder sort_order, // ASCENDING, DESCENDING int sort_field_len, // length of the sort field. int amt_of_mem, // IN PAGES Status & s ); ~Sort(); Status get_next(Tuple * &tuple); // The tuple is returned. }; #endif