|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.persistent.DefaultPageHeader de.lmu.ifi.dbs.elki.index.tree.TreeIndexHeader de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mkmax.MkMaxTreeHeader
public class MkMaxTreeHeader
Encapsulates the header information of a MkNN-Tree. This information is needed for persistent storage.
Field Summary | |
---|---|
(package private) int |
k
The parameter k. |
private static int |
SIZE
The size of this header. |
Constructor Summary | |
---|---|
MkMaxTreeHeader()
Empty constructor for serialization. |
|
MkMaxTreeHeader(int pageSize,
int dirCapacity,
int leafCapacity,
int k)
Creates a nerw header with the specified parameters. |
Method Summary | |
---|---|
int |
getK()
Returns the parameter k. |
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 de.lmu.ifi.dbs.elki.index.tree.TreeIndexHeader |
---|
getDirCapacity, getDirMinimum, getLeafCapacity, getLeafMinimum |
Methods inherited from class de.lmu.ifi.dbs.elki.persistent.DefaultPageHeader |
---|
getPageSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static int SIZE
int k
Constructor Detail |
---|
public MkMaxTreeHeader()
public MkMaxTreeHeader(int pageSize, int dirCapacity, int leafCapacity, int k)
pageSize
- the size of a page in bytesdirCapacity
- the capacity of a directory nodeleafCapacity
- the capacity of a leaf nodek
- the parameter kMethod Detail |
---|
public void readHeader(RandomAccessFile file) throws IOException
readHeader
in interface PageHeader
readHeader
in class TreeIndexHeader
file
- the file to which this header belongs
IOException
public void writeHeader(RandomAccessFile file) throws IOException
writeHeader
in interface PageHeader
writeHeader
in class TreeIndexHeader
file
- the file to which this header belongs
IOException
public int getK()
public int size()
size
in interface PageHeader
size
in class TreeIndexHeader
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |