com.bigdata.relation.accesspath
Interface IElementFilter<E>

All Superinterfaces:
IFilterTest, Serializable
All Known Implementing Classes:
DoNotAddFilter, ExplicitSPOFilter, InferredSPOFilter, InGraphBinarySearchFilter, InGraphHashSetFilter, NoAxiomFilter, RdfTypeRdfsResourceFilter, SolutionFilter, SPOFilter

public interface IElementFilter<E>
extends IFilterTest, Serializable

Filter for accepting or rejecting visited elements.

Version:
$Id: IElementFilter.java 3678 2010-09-29 15:48:34Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 boolean canAccept(Object o)
          Return true iff this this filter can be used on the specified object (filter on the object class).
 
Methods inherited from interface cutthecrap.utils.striterators.IFilterTest
isValid
 

Method Detail

canAccept

boolean canAccept(Object o)
Return true iff this this filter can be used on the specified object (filter on the object class).

Note: This was added to make it possible filter out cases where the runtime type system was throwing a ClassCastException in the IFilterTest.isValid(Object) implementation.

Parameters:
o - An object of some type.
Returns:
true if the element can be inspected by this filter.


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