com.bigdata.relation.accesspath
Class ElementFilter<R>

java.lang.Object
  extended by cutthecrap.utils.striterators.FilterBase
      extended by com.bigdata.btree.filter.TupleFilter<R>
          extended by com.bigdata.relation.accesspath.ElementFilter<R>
Type Parameters:
R - The generic type of the elements presented to the filter.
All Implemented Interfaces:
ITupleFilter<R>, IFilter, IPropertySet, Serializable, Cloneable

public class ElementFilter<R>
extends TupleFilter<R>

Align the predicate's IElementFilter constraint with ITupleFilter so that the IElementFilter can be evaluated close to the data by an ITupleIterator.

Version:
$Id: ElementFilter.java 3678 2010-09-29 15:48:34Z thompsonbry $
Author:
Bryan Thompson
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.bigdata.btree.filter.TupleFilter
TupleFilter.TupleFilterator<E>
 
Constructor Summary
ElementFilter(IElementFilter<R> test)
           
 
Method Summary
 boolean isValid(ITuple<R> tuple)
           
static
<R> IFilter
newInstance(IElementFilter<R> test)
          Helper method conditionally wraps the test.
 
Methods inherited from class com.bigdata.btree.filter.TupleFilter
filterOnce
 
Methods inherited from class cutthecrap.utils.striterators.FilterBase
addFilter, filter, getProperty, getRequiredProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cutthecrap.utils.striterators.IFilter
filter
 
Methods inherited from interface cutthecrap.utils.striterators.IPropertySet
getProperty
 

Constructor Detail

ElementFilter

public ElementFilter(IElementFilter<R> test)
Method Detail

newInstance

public static <R> IFilter newInstance(IElementFilter<R> test)
Helper method conditionally wraps the test.

Type Parameters:
R -
Parameters:
test - The test.
Returns:
The wrapper test -or- null iff the test is null.

isValid

public boolean isValid(ITuple<R> tuple)
Specified by:
isValid in class TupleFilter<R>


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