|
|
|||||||||||||||||||||
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.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. |
Constructor Summary | |
---|---|
RdKNNTreeHeader()
Empty constructor for serialization. |
|
RdKNNTreeHeader(int pageSize,
int dirCapacity,
int leafCapacity,
int dirMinimum,
int leafMinimum,
int k_max)
Creates a nerw header with the specified parameters. |
Method Summary | |
---|---|
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_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 minmum number of entries in a directory nodeleafMinimum
- the minmum number of entries in a leaf nodek_max
- the maximum number k of reverse kNN queries to be supportedMethod 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 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 |