org.exist.util
Class StorageAddress

java.lang.Object
  extended byorg.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

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)
           
static short flagsFromPointer(long pointer)
           
static int pageFromPointer(long pointer)
          Get the page from a virtual address
static long read(VariableByteInputStream is)
           
static short tidFromPointer(long pointer)
          Get the tid from a virtual address
static java.lang.String toString(long pointer)
           
static void write(long pointer, VariableByteOutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageAddress

public StorageAddress()
Method Detail

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.