|
|
|||||||||||||||||||||
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
public class TreeIndexHeader
Encapsulates the header information of a tree like index structure. This information is needed for persistent storage.
Field Summary | |
---|---|
(package private) int |
dirCapacity
The capacity of a directory node (= 1 + maximum number of entries in a directory node). |
(package private) int |
dirMinimum
The minimum number of entries in a directory node. |
(package private) int |
leafCapacity
The capacity of a leaf node (= 1 + maximum number of entries in a leaf node). |
(package private) int |
leafMinimum
The minimum number of entries in a leaf node. |
private static int |
SIZE
The size of this header. |
Constructor Summary | |
---|---|
TreeIndexHeader()
Empty constructor for serialization. |
|
TreeIndexHeader(int pageSize,
int dirCapacity,
int leafCapacity,
int dirMinimum,
int leafMinimum)
Creates a nerw header with the specified parameters. |
Method Summary | |
---|---|
int |
getDirCapacity()
Returns the capacity of a directory node (= 1 + maximum number of entries in a directory node). |
int |
getDirMinimum()
Returns the minmum number of entries in a directory node. |
int |
getLeafCapacity()
Returns the capacity of a leaf node (= 1 + maximum number of entries in a leaf node). |
int |
getLeafMinimum()
Returns the minmum number of entries in a leaf node. |
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.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 dirCapacity
int leafCapacity
int dirMinimum
int leafMinimum
Constructor Detail |
---|
public TreeIndexHeader()
public TreeIndexHeader(int pageSize, int dirCapacity, int leafCapacity, int dirMinimum, int leafMinimum)
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 nodeMethod Detail |
---|
public void readHeader(RandomAccessFile file) throws IOException
readHeader
in interface PageHeader
readHeader
in class DefaultPageHeader
file
- the file to which this header belongs
IOException
public void writeHeader(RandomAccessFile file) throws IOException
writeHeader
in interface PageHeader
writeHeader
in class DefaultPageHeader
file
- the file to which this header belongs
IOException
public int getDirCapacity()
public int getLeafCapacity()
public int getDirMinimum()
public int getLeafMinimum()
public int size()
size
in interface PageHeader
size
in class DefaultPageHeader
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |