package org.opencloudb.mpp.tmp;

import java.util.Vector;

import org.opencloudb.net.mysql.RowDataPacket;

public interface HeapItf {

    public abstract void buildMinHeap();

    public abstract RowDataPacket getRoot();

    public abstract void setRoot(RowDataPacket root);

    public abstract Vector<RowDataPacket> getData();

    public abstract void add(RowDataPacket row);

}
@@ -100,16 +100,59 @@
 acket;%0A%0A
+/**%0A * %0A * @author coderczp-2014-12-17%0A */%0A
 public i
@@ -288,15 +288,11 @@
 oid 
-setRoot
+add
 (Row
@@ -304,18 +304,17 @@
 acket ro
-ot
+w
 );%0A%0A    
@@ -380,34 +380,99 @@
 c abstract void 
-ad
+setRoot(RowDataPacket root);%0A%0A    public abstract void addIfRequire
 d(RowDataPacket 
@@ -479,8 +479,9 @@
 row);%0A%0A%7D
+%0A

Update HeapItf.java