|
|
|||||||||||||||||||||
| 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
de.lmu.ifi.dbs.elki.index.tree.TreeIndexHeader
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.MkTreeHeader
public class MkTreeHeader
Encapsulates the header information for subclasses of
AbstractMkTree.
This information is needed for persistent storage.
| Field Summary | |
|---|---|
private int |
k_max
The maximum number k of reverse kNN queries to be supported. |
private static int |
SIZE
The size of this header in Bytes, which is 4 Bytes (for k_max). |
| Constructor Summary | |
|---|---|
MkTreeHeader()
Empty constructor for serialization. |
|
MkTreeHeader(int pageSize,
int dirCapacity,
int leafCapacity,
int k_max)
Creates a nerw header with the specified parameters. |
|
| Method Summary | |
|---|---|
int |
getK_max()
Returns the parameter k. |
void |
readHeader(RandomAccessFile file)
Initializes this header from the specified file. |
int |
size()
Returns TreeIndexHeader.size()
plus the value of SIZE). |
void |
writeHeader(RandomAccessFile file)
Writes this header to the specified file. |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.TreeIndexHeader |
|---|
getDirCapacity, getDirMinimum, getEmptyPagesSize, getLeafCapacity, getLeafMinimum, readEmptyPages, setEmptyPagesSize, writeEmptyPages |
| Methods inherited from class de.lmu.ifi.dbs.elki.persistent.DefaultPageHeader |
|---|
asByteArray, getPageSize, getReservedPages, readHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static int SIZE
k_max).
private int k_max
| Constructor Detail |
|---|
public MkTreeHeader()
public MkTreeHeader(int pageSize,
int dirCapacity,
int leafCapacity,
int k_max)
pageSize - the size of a page in bytesdirCapacity - the capacity of a directory nodeleafCapacity - the capacity of a leaf nodek_max - the parameter k| Method Detail |
|---|
public void readHeader(RandomAccessFile file)
throws IOException
TreeIndexHeader#readHeader(file) and reads additionally the integer value of
k_max
from the file.
readHeader in interface PageHeaderreadHeader in class TreeIndexHeaderfile - the file to which this header belongs
IOException - if an I/O-error occurs during reading
public void writeHeader(RandomAccessFile file)
throws IOException
TreeIndexHeader.writeHeader(java.io.RandomAccessFile)
and writes additionally the integer value of
k_max
to the file.
writeHeader in interface PageHeaderwriteHeader in class TreeIndexHeaderfile - the file to which this header belongs
IOException - IOException if an I/O-error occurs during writingpublic int getK_max()
public int size()
TreeIndexHeader.size()
plus the value of SIZE).
size in interface PageHeadersize in class TreeIndexHeader
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||