|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectneustore.base.DBPage
public abstract class DBPage
Abstract base class for a memory-version disk page.
For example, a derived class can be BTreeIndexPage
.
A derived class should implement the functions to read
from
a byte array, and to write
to a byte array.
A convention is that in the byte array, the first integer should be nodeType.
Field Summary | |
---|---|
int |
nodeType
The node type. |
int |
pageSize
The page size. |
Constructor Summary | |
---|---|
DBPage(int _nodeType,
int _pageSize)
Creates a DBPage. |
Method Summary | |
---|---|
protected abstract void |
read(byte[] page)
Reads the object from a byte array. |
protected abstract void |
write(byte[] page)
Writes the object to a byte array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int nodeType
public int pageSize
Constructor Detail |
---|
public DBPage(int _nodeType, int _pageSize)
_nodeType
- node type_pageSize
- page sizeMethod Detail |
---|
protected abstract void read(byte[] page) throws java.io.IOException
page
-
java.io.IOException
protected abstract void write(byte[] page) throws java.io.IOException
page
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |