edu.umd.cs.db.xsq
Class StatBuffer

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

public class StatBuffer
extends java.lang.Object

Class description goes here


Constructor Summary
StatBuffer()
          Constructor.
 
Method Summary
 void clear()
           
 java.lang.String flush(int outputFunc, boolean getResult)
           
 java.lang.String getItem(int outputFunc)
           
 boolean isInitStatus()
           
 void merge(edu.umd.cs.db.xsq.StatBuffer sb)
           
 void putItem(int outputFunc, java.lang.String curValue)
          Currently there are at most two item in the StatBuffer.
 void updateItem(int outputFunc, java.lang.String curValue)
          Update the content in the buffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatBuffer

public StatBuffer()
Constructor. It will initialize all the initial value of the statistics

Method Detail

clear

public void clear()

putItem

public void putItem(int outputFunc,
                    java.lang.String curValue)
Currently there are at most two item in the StatBuffer. We suppose that there is only on aggregation in the XPath expression. So the operation here is simplified version. No need to match the path.


isInitStatus

public boolean isInitStatus()

updateItem

public void updateItem(int outputFunc,
                       java.lang.String curValue)
Update the content in the buffer


merge

public void merge(edu.umd.cs.db.xsq.StatBuffer sb)

getItem

public java.lang.String getItem(int outputFunc)

flush

public java.lang.String flush(int outputFunc,
                              boolean getResult)