|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectiterator.pnodePQ
iterator.pnodeSplayPQ
Implements a sorted binary tree (extends class pnodePQ).
Implements the enq and the deq functions.
| Constructor Summary | |
pnodeSplayPQ()
class constructor, sets default values. |
|
pnodeSplayPQ(int fldNo,
AttrType fldType,
TupleOrder order)
class constructor. |
|
| Method Summary | |
pnode |
deq()
Removes the minimum (Ascending) or maximum (Descending) element. |
void |
enq(pnode item)
Inserts an element into the binary tree. |
| Methods inherited from class iterator.pnodePQ |
empty, length, pnodeCMP, pnodeEQ |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public pnodeSplayPQ()
public pnodeSplayPQ(int fldNo,
AttrType fldType,
TupleOrder order)
fldNo - the field number for sortingfldType - the type of the field for sortingorder - the order of sorting (Ascending or Descending)| Method Detail |
public void enq(pnode item)
throws java.io.IOException,
UnknowAttrType,
TupleUtilsException
enq in class pnodePQitem - the element to be inserted
java.io.IOException - from lower layers
UnknowAttrType - attrSymbol or
attrNull encountered
TupleUtilsException - error in tuple compare routinespublic pnode deq()
deq in class pnodePQ
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||