E
- public abstract class TupleRemover<E> extends FilterBase implements ITupleFilter<E>
Note: If you want to only visit those elements that are being removed,
then apply a TupleFilter
first and then stack the TupleRemover
on top and make #remove(Object)
always return true
.
Note that you MUST also specify IRangeQuery.CURSOR
if the index
is a local B+Tree since traversal with concurrent modification is
otherwise not supported.
Constructor and Description |
---|
TupleRemover() |
Modifier and Type | Method and Description |
---|---|
ITupleIterator<E> |
filterOnce(Iterator src,
Object context)
Wrap the source iterator with this filter.
|
protected abstract boolean |
remove(ITuple<E> e)
true iff the tuple should be removed from the source
IIndex . |
addFilter, filter, getProperty, getRequiredProperty, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProperty
public ITupleIterator<E> filterOnce(Iterator src, Object context)
FilterBase
filterOnce
in interface ITupleFilter<E>
filterOnce
in class FilterBase
src
- The source iterator.context
- The iterator evaluation context.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.