|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdbm.btree.BPage
public final class BPage
Page of a Btree.
The page contains a number of key-value pairs. Keys are ordered to allow dichotomic search.
If the page is a leaf page, the keys and values are user-defined and represent entries inserted by the user.
If the page is non-leaf, each key represents the greatest key in the underlying BPages and the values are recids pointing to the children BPages. The only exception is the rightmost BPage, which is considered to have an "infinite" key value, meaning that any insert will be to the left of this pseudo-key
Constructor Summary | |
---|---|
BPage()
No-argument constructor used by serialization. |
Method Summary | |
---|---|
java.lang.Object |
deserialize(byte[] serialized)
Deserialize the content of an object from a byte array. |
byte[] |
serialize(java.lang.Object obj)
Serialize the content of an object into a byte array. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BPage()
Method Detail |
---|
public java.lang.Object deserialize(byte[] serialized) throws java.io.IOException
deserialize
in interface Serializer
serialized
- Byte array representation of the object
java.io.IOException
public byte[] serialize(java.lang.Object obj) throws java.io.IOException
serialize
in interface Serializer
obj
- Object to serialize
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |