|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectneustore.base.DBPage
test.naiveheapfile.NaiveHeapFilePage
public class NaiveHeapFilePage
A DBPage as a component of a naive version of the heap file. This naive heap file is not meant to be used. Rather, it only shows an example of using the NEU Storage Package.
NaiveHeapFile
Field Summary |
---|
Fields inherited from class neustore.base.DBPage |
---|
nodeType, pageSize |
Constructor Summary | |
---|---|
NaiveHeapFilePage(int _pageSize)
|
Method Summary | |
---|---|
void |
insert(int key)
Inserts a new integer into this page. |
int |
numRecs()
Returns the number of records in this page. |
protected void |
read(byte[] b)
Reads the object from a byte array. |
boolean |
search(int key)
Searches for an integer in this page. |
protected void |
write(byte[] b)
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 |
Constructor Detail |
---|
public NaiveHeapFilePage(int _pageSize)
Method Detail |
---|
public int numRecs()
public void insert(int key)
key
- the new integerpublic boolean search(int key)
key
- the integer to search for
protected void read(byte[] b) throws java.io.IOException
DBPage
read
in class DBPage
java.io.IOException
protected void write(byte[] b) throws java.io.IOException
DBPage
write
in class DBPage
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |