|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.persistent.DefaultPageHeader
public class DefaultPageHeader
Default implementation of a page header.
| Field Summary | |
|---|---|
private static int |
FILE_VERSION
Magic number. |
private int |
pageSize
The size of a page in bytes. |
private static int |
SIZE
The size of this header. |
| Constructor Summary | |
|---|---|
DefaultPageHeader()
Empty constructor for serialization. |
|
DefaultPageHeader(int pageSize)
Creates a nerw header with the specified parameters. |
|
| 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, |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int FILE_VERSION
private static int SIZE
private int pageSize
| Constructor Detail |
|---|
public DefaultPageHeader()
public DefaultPageHeader(int pageSize)
pageSize - the size of a page in bytes| Method Detail |
|---|
public int size()
size in interface PageHeader
public void readHeader(RandomAccessFile file)
throws IOException
readHeader in interface PageHeaderfile - the file to which this header belongs
IOException
public void writeHeader(RandomAccessFile file)
throws IOException
writeHeader in interface PageHeaderfile - the file to which this header belongs
IOExceptionpublic int getPageSize()
getPageSize in interface PageHeader
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||