com.bigdata.btree.filter
Class TupleUpdater<E>

java.lang.Object
  extended by com.bigdata.btree.filter.TupleFilter<E>
      extended by com.bigdata.btree.filter.TupleUpdater<E>
Type Parameters:
E -
All Implemented Interfaces:
ITupleFilter<E>, cutthecrap.utils.striterators.IFilter, Serializable
Direct Known Subclasses:
FileVersionDeleter

public abstract class TupleUpdater<E>
extends TupleFilter<E>

Filter allows mutation of the visited ITuples.

Version:
$Id: TupleUpdater.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
See Also:
Serialized Form

Nested Class Summary
protected  class TupleUpdater.Updaterator
           
 
Nested classes/interfaces inherited from class com.bigdata.btree.filter.TupleFilter
TupleFilter.Filterator
 
Field Summary
 
Fields inherited from class com.bigdata.btree.filter.TupleFilter
log, state
 
Constructor Summary
TupleUpdater()
           
TupleUpdater(Object state)
           
 
Method Summary
 ITupleIterator<E> filter(Iterator src)
          Strengthened return type.
protected abstract  void update(IIndex ndx, ITuple<E> tuple)
          You may implement this method to update the state of the visited tuple in the backing index.
 
Methods inherited from class com.bigdata.btree.filter.TupleFilter
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleUpdater

public TupleUpdater()

TupleUpdater

public TupleUpdater(Object state)
Method Detail

filter

public ITupleIterator<E> filter(Iterator src)
Description copied from interface: ITupleFilter
Strengthened return type.

Specified by:
filter in interface ITupleFilter<E>
Specified by:
filter in interface cutthecrap.utils.striterators.IFilter
Overrides:
filter in class TupleFilter<E>

update

protected abstract void update(IIndex ndx,
                               ITuple<E> tuple)
You may implement this method to update the state of the visited tuple in the backing index.

Note: If you modify tuple then that modification will be visitible to the consumer of the iterator.

Parameters:
ndx - The index on which the ITupleCursor is reading.
tuple - The tuple that is being visited.


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