org.exist.util
Class StorageAddress
java.lang.Object
org.exist.util.StorageAddress
- public class StorageAddress
- extends java.lang.Object
- Author:
- wolf
To change this generated comment go to
Window>Preferences>Java>Code Generation>Code and Comments
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StorageAddress
public StorageAddress()
createPointer
public static final long createPointer(int page,
short tid)
- Create virtual address from page number and offset (tid)
- Parameters:
page
- page number
- Returns:
- new virtual address in a long
createPointer
public static final long createPointer(int page,
short tid,
short flags)
tidFromPointer
public static final short tidFromPointer(long pointer)
- Get the tid from a virtual address
- Parameters:
pointer
-
- Returns:
- the tid encoded in this address
pageFromPointer
public static final int pageFromPointer(long pointer)
- Get the page from a virtual address
- Parameters:
pointer
-
- Returns:
- the page encoded in this address
flagsFromPointer
public static final short flagsFromPointer(long pointer)
equals
public static final boolean equals(long p0,
long p1)
write
public static final void write(long pointer,
VariableByteOutputStream os)
read
public static final long read(VariableByteInputStream is)
throws java.io.IOException,
java.io.EOFException
- Throws:
java.io.IOException
java.io.EOFException
toString
public static final java.lang.String toString(long pointer)
Copyright (C) Wolfgang Meier. All rights reserved.