ostore.dataobj
Interface Btree.Predicate

All Known Implementing Classes:
TputGenerateChkptTest.RemoveGuidsHelper
Enclosing interface:
Btree

public static interface Btree.Predicate

This interface must be implemented by clients wishing to use any of the Depth-First Search (DFS) methods.


Method Summary
 boolean predicate(BtreeNode node, int index, HandleStore handle_store)
          Evaluates whether a DFS should descend into a child node.
 

Method Detail

predicate

public boolean predicate(BtreeNode node,
                         int index,
                         HandleStore handle_store)
                  throws CacheException
Evaluates whether a DFS should descend into a child node.

Parameters:
node - the node in the btree which is currently being searched
index - the index of the child which is being considered for descent
Returns:
true iff the search should descend to the child at the given index
CacheException