class RdKNNTreeHeader extends TreeIndexHeader
| Modifier and Type | Field and Description |
|---|---|
(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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
readHeader(java.io.RandomAccessFile file)
Initializes this header from the specified file.
|
int |
size()
Returns
TreeIndexHeader.size() plus
the value of SIZE). |
void |
writeHeader(java.io.RandomAccessFile file)
Writes this header to the specified file.
|
getDirCapacity, getDirMinimum, getEmptyPagesSize, getLargestPageID, getLeafCapacity, getLeafMinimum, readEmptyPages, setEmptyPagesSize, setLargestPageID, writeEmptyPagesasByteArray, getPageSize, getReservedPages, readHeaderprivate static int SIZE
k_max).int k_max
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 supportedpublic void readHeader(java.io.RandomAccessFile file)
throws java.io.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 belongsjava.io.IOException - if an I/O-error occurs during readingpublic void writeHeader(java.io.RandomAccessFile file)
throws java.io.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 belongsjava.io.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 TreeIndexHeaderCopyright © 2019 ELKI Development Team. License information.