|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.storage.StorageAddress
public class StorageAddress
Represents a (virtual) storage address in the paged file, consisting of page number, tuple id and type indicator. The format of a storage address is as follows:
| page | type | tid | | 1 2 3 4 | 5 6 | 7 8 |
| Constructor Summary | |
|---|---|
StorageAddress()
|
|
| Method Summary | |
|---|---|
static long |
createPointer(int page,
short tid)
Create virtual address from page number and offset (tid) |
static long |
createPointer(int page,
short tid,
short flags)
|
static boolean |
equals(long p0,
long p1)
Returns true if the page number and tid of the two storage addresses is equal. |
static short |
indexTypeFromPointer(long pointer)
Get the type indicator from a virtual address. |
static int |
pageFromPointer(long pointer)
Get the page from a virtual address. |
static long |
read(VariableByteInput is)
|
static long |
setIndexType(long pointer,
short type)
|
static short |
tidFromPointer(long pointer)
Get the tid (tuple id) from a virtual address. |
static String |
toString(long pointer)
|
static void |
write(long pointer,
VariableByteOutputStream os)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StorageAddress()
| Method Detail |
|---|
public static final long createPointer(int page,
short tid)
page - page numbertid - offset
public static final long createPointer(int page,
short tid,
short flags)
public static final short tidFromPointer(long pointer)
pointer -
public static final int pageFromPointer(long pointer)
pointer -
public static final short indexTypeFromPointer(long pointer)
Type.
pointer -
public static final long setIndexType(long pointer,
short type)
public static final boolean equals(long p0,
long p1)
p0 - p1 -
public static final void write(long pointer,
VariableByteOutputStream os)
public static final long read(VariableByteInput is)
throws IOException,
EOFException
IOException
EOFExceptionpublic static final String toString(long pointer)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||