Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.persistent
Interface PageHeader

All Known Implementing Classes:
DefaultPageHeader, MkMaxTreeHeader, RdKNNTreeHeader, TreeIndexHeader

public interface PageHeader

Defines the requirements for a header of a persistent page file. A header must at least store the size of a page in Bytes.

Author:
Elke Achtert

Method Summary
 int getPageSize()
          Returns the size of a page in Bytes.
 void readHeader(RandomAccessFile file)
          Initializes this header from the specified file,
 int size()
          Returns the size of this header in Bytes.
 void writeHeader(RandomAccessFile file)
          Writes this header to the specified file,
 

Method Detail

size

int size()
Returns the size of this header in Bytes.

Returns:
the size of this header in Bytes

readHeader

void readHeader(RandomAccessFile file)
                throws IOException
Initializes this header from the specified file,

Parameters:
file - the file to which this header belongs
Throws:
IOException

writeHeader

void writeHeader(RandomAccessFile file)
                 throws IOException
Writes this header to the specified file,

Parameters:
file - the file to which this header belongs
Throws:
IOException

getPageSize

int getPageSize()
Returns the size of a page in Bytes.

Returns:
the size of a page in Bytes

Release 0.1 (2008-07-10_1838)