neustore.base
Class DBBufferReturnElement

java.lang.Object
  extended by neustore.base.DBBufferReturnElement

public class DBBufferReturnElement
extends java.lang.Object

A buffered page as return result to DBBuffer.readPage(java.io.RandomAccessFile, int). Besides the page itself, the returned element also specifies the nodeType and whether the node was parsed. If parsed, the returned object is of class DBPage. Otherwise, the returned object is a byte array and it's up to the application to generate a DBPage object.

Author:
Donghui Zhang <donghui@ccs.neu.edu>
See Also:
DBBuffer

Field Summary
 int nodeType
           
 java.lang.Object object
           
 boolean parsed
           
 
Constructor Summary
DBBufferReturnElement(int _nodeType, java.lang.Object _object, boolean _parsed)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeType

public int nodeType

object

public java.lang.Object object

parsed

public boolean parsed
Constructor Detail

DBBufferReturnElement

public DBBufferReturnElement(int _nodeType,
                             java.lang.Object _object,
                             boolean _parsed)