|
|
|||||||||||||||||||||
| 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.spatial.rstarvariants.rdknn.RdKNNTreeHeader
class RdKNNTreeHeader
Encapsulates the header information of a RDkNN-Tree. This information is needed for persistent storage.
| Field Summary | |
|---|---|
(package 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 | |
|---|---|
RdKNNTreeHeader()
Empty constructor for serialization. |
|
RdKNNTreeHeader(int pageSize,
int dirCapacity,
int leafCapacity,
int dirMinimum,
int leafMinimum,
int k_max)
Creates a new header with the specified parameters. |
|
| Method Summary | |
|---|---|
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).
int k_max
| Constructor Detail |
|---|
public RdKNNTreeHeader()
public RdKNNTreeHeader(int pageSize,
int dirCapacity,
int leafCapacity,
int dirMinimum,
int leafMinimum,
int k_max)
pageSize - the size of a page in bytesdirCapacity - the maximum number of entries in a directory nodeleafCapacity - the maximum number of entries in a leaf nodedirMinimum - the minimum number of entries in a directory nodeleafMinimum - the minimum number of entries in a leaf nodek_max - the maximum number k of reverse kNN queries to be supported| 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 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 | |||||||||||