org.exist.storage.index
Class FreeSpace

java.lang.Object
  extended byorg.exist.storage.index.FreeSpace

public class FreeSpace
extends java.lang.Object

Used to track the available amount of free space in a data page.

Author:
wolf
See Also:
FreeList

Field Summary
protected  int free
           
protected  FreeSpace next
           
protected  long page
           
protected  FreeSpace previous
           
 
Constructor Summary
FreeSpace(long pageNum, int space)
           
 
Method Summary
 int compareTo(FreeSpace other)
           
 boolean equals(FreeSpace other)
           
 int getFree()
          Returns the amount of unused space in the page (in bytes).
 long getPage()
          The unique page number.
 void setFree(int space)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

free

protected int free

page

protected long page

next

protected FreeSpace next

previous

protected FreeSpace previous
Constructor Detail

FreeSpace

public FreeSpace(long pageNum,
                 int space)
Method Detail

compareTo

public int compareTo(FreeSpace other)

equals

public boolean equals(FreeSpace other)

getFree

public int getFree()
Returns the amount of unused space in the page (in bytes).

Returns:

getPage

public long getPage()
The unique page number.

Returns:

setFree

public void setFree(int space)


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.