|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.nativerdf.btree.AllocatedNodesList
public class AllocatedNodesList
List of allocated BTree nodes, persisted to a file on disk.
| Constructor Summary | |
|---|---|
AllocatedNodesList(File allocNodesFile,
BTree btree)
Creates a new AllocatedNodelist for the specified BTree. |
|
| Method Summary | |
|---|---|
int |
allocateNode()
|
void |
clear()
Clears the allocated nodes list. |
boolean |
delete()
Deletes the allocated nodes file. |
void |
freeNode(int nodeID)
|
File |
getFile()
Gets the allocated nodes file. |
int |
getMaxNodeID()
Returns the highest allocated node ID. |
int |
getNodeCount()
Returns the number of allocated nodes. |
void |
sync()
Writes any changes that are cached in memory to disk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllocatedNodesList(File allocNodesFile,
BTree btree)
| Method Detail |
|---|
public File getFile()
public boolean delete()
throws IOException
IOException
public void sync()
throws IOException
IOException
public void clear()
throws IOException
IOException - If an I/O error occurred.
public int allocateNode()
throws IOException
IOException
public void freeNode(int nodeID)
throws IOException
IOException
public int getMaxNodeID()
throws IOException
IOException
public int getNodeCount()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||