org.cdlib.xtf.lazyTree
Interface PersistentTree

All Known Implementing Classes:
LazyDocument, SearchTree

public interface PersistentTree

General interface for a tree that is disk-based, and should be closed after use.

Author:
Martin Haye

Method Summary
 void close()
          This should be called when done using the tree, to close disk files
 void printProfile()
          Print out a profile (if one was collected)
 void setAllPermanent(boolean flag)
          Establishes whether nodes should be held in RAM, or only held by soft references.
 

Method Detail

close

void close()
This should be called when done using the tree, to close disk files


printProfile

void printProfile()
                  throws IOException
Print out a profile (if one was collected)

Throws:
IOException

setAllPermanent

void setAllPermanent(boolean flag)
Establishes whether nodes should be held in RAM, or only held by soft references.

Parameters:
flag - True to hold nodes for the life of the tree, false to hold only soft references to them.