com.bigdata.btree.filter
Class FilterConstructor<E>
java.lang.Object
com.bigdata.btree.filter.FilterConstructor<E>
- All Implemented Interfaces:
- IFilterConstructor<E>, Serializable, Cloneable
public class FilterConstructor<E>
- extends Object
- implements IFilterConstructor<E>, Cloneable
Implementation allows you to append IFilters to an internal
ordered list. The corresponding stacked filter is then assembled by
#newInstance(Iterator).
- Version:
- $Id: FilterConstructor.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
- See Also:
- Serialized Form
FilterConstructor
public FilterConstructor()
clone
public FilterConstructor<E> clone()
- Overrides:
clone in class Object
addFilter
public FilterConstructor<E> addFilter(cutthecrap.utils.striterators.IFilter filter)
- Add a(nother) filter to the filter stack. The filters are applied
in the order in which they are declared to this method.
- Parameters:
filter - The filter.
- Returns:
- this
newInstance
public ITupleIterator<E> newInstance(ITupleIterator<E> src)
- Create a filter stack.
- Specified by:
newInstance in interface IFilterConstructor<E>
- Parameters:
src - The source iterator.
- Returns:
- The iterator stack.
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.