jdbm.recman
Class RecordHeader

java.lang.Object
  extended by jdbm.recman.RecordHeader

 class RecordHeader
extends java.lang.Object

The data that comes at the start of a record of data. It stores both the current size and the avaliable size for the record - the latter can be bigger than the former, which allows the record to grow without needing to be moved and which allows the system to put small records in larger free spots.


Field Summary
(package private) static int SIZE
           
 
Constructor Summary
RecordHeader(BlockIo block, short pos)
          Constructs a record header from the indicated data starting at the indicated position.
 
Method Summary
(package private)  int getAvailableSize()
          Returns the available size
(package private)  int getCurrentSize()
          Returns the current size
(package private)  void setAvailableSize(int value)
          Sets the available size
(package private)  void setCurrentSize(int value)
          Sets the current size
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SIZE

static final int SIZE
See Also:
Constant Field Values
Constructor Detail

RecordHeader

RecordHeader(BlockIo block,
             short pos)
Constructs a record header from the indicated data starting at the indicated position.

Method Detail

getCurrentSize

int getCurrentSize()
Returns the current size


setCurrentSize

void setCurrentSize(int value)
Sets the current size


getAvailableSize

int getAvailableSize()
Returns the available size


setAvailableSize

void setAvailableSize(int value)
Sets the available size


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Cees de Groot (C) 2000-2001. All rights reserved http://jdbm.sourceforge.net