edu.umd.cs.db.xsq
Class PDTOutputQ

java.lang.Object
  |
  +--edu.umd.cs.db.xsq.PDTOutputQ

public class PDTOutputQ
extends java.lang.Object

Each BPDT has its own output queue. However, the content in the queue are actually references to the items in the global queue. The HPDT will put every possible answer into the global queue. The output in the queue will be flushed to the stdout in the flush() function by default. You can specify that the flush() function send the content to a buffer.


Constructor Summary
PDTOutputQ(int bpdtId, edu.umd.cs.db.xsq.HPDTOutputQ q)
           
 
Method Summary
 void clear(long flag)
           
 void enqueue(edu.umd.cs.db.xsq.QueueItem qi, long flag)
           
 void flush(long flag)
          Mark all items in the queue with flag as output.
 int getBpdtId()
           
 java.util.Vector getBufferWithFlag(long flag)
           
 void output(edu.umd.cs.db.xsq.QueueItem qi)
          If the item qi is in the queue, mark it as output and remove its reference from current queue.
 void printContent()
           
 void upload(long flag, edu.umd.cs.db.xsq.PDTOutputQ anceQ)
          The function will upload the items in the current queue that has the flag to the queue of its parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDTOutputQ

public PDTOutputQ(int bpdtId,
                  edu.umd.cs.db.xsq.HPDTOutputQ q)
Method Detail

getBpdtId

public int getBpdtId()

getBufferWithFlag

public java.util.Vector getBufferWithFlag(long flag)

enqueue

public void enqueue(edu.umd.cs.db.xsq.QueueItem qi,
                    long flag)

clear

public void clear(long flag)

upload

public void upload(long flag,
                   edu.umd.cs.db.xsq.PDTOutputQ anceQ)
The function will upload the items in the current queue that has the flag to the queue of its parent.


flush

public void flush(long flag)
Mark all items in the queue with flag as output. Remove the references for these items from current queue.


output

public void output(edu.umd.cs.db.xsq.QueueItem qi)
If the item qi is in the queue, mark it as output and remove its reference from current queue.


printContent

public void printContent()