com.bigdata.btree
Interface Leaf.ILeafListener

Enclosing class:
Leaf

public static interface Leaf.ILeafListener

An interface that may be used to register for and receive events when the state of a Leaf is changed. This includes (a) adding a new tuple to a leaf; (b) removing a tuple from a leaf (but not flagging an existing tuple as deleted); and (c) when the leaf is discarded by copy-on-write.

Version:
$Id: Leaf.java 4950 2011-07-19 20:53:37Z thompsonbry $
Author:
Bryan Thompson
TODO:
another listener API could be developed for tuple state changes. that would be useful if there was a desire for pre- or post-processing for each tuple. This might be useful for introducing triggers.

Method Summary
 void invalidateLeaf()
          Notice that the leaf state has changed and that the listener must not assume: (a) that a tuple of interest still resides within the leaf (it may have been moved up or down within the leaf or it may be in another leaf altogether as a result of underflow or overflow); (b) that the leaf is still in use (it may have been discarded by a copy-on-write operation).
 

Method Detail

invalidateLeaf

void invalidateLeaf()
Notice that the leaf state has changed and that the listener must not assume: (a) that a tuple of interest still resides within the leaf (it may have been moved up or down within the leaf or it may be in another leaf altogether as a result of underflow or overflow); (b) that the leaf is still in use (it may have been discarded by a copy-on-write operation).



Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.