public abstract class BOpFilterBase extends BOpBase implements IFilter
The striterator pattern is enacted slightly differently here. The filter
chain is formed by stacking BOpFilterBases as child operands. Each
operand specified to a BOpFilterBase must be a BOpFilterBase and
layers on another filter, so you can stack filters as nested operands or as a
sequence of operands.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BOpFilterBase.Annotations |
DEFAULT_INITIAL_CAPACITY| Constructor and Description |
|---|
BOpFilterBase(BOp[] args,
Map<String,Object> annotations)
Shallow copy.
|
BOpFilterBase(BOpFilterBase op)
Deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator |
filter(Iterator src,
Object context)
The filter method is provided to allow the creation of the filtering iterator.
|
protected abstract Iterator |
filterOnce(Iterator src,
Object context)
Wrap the source iterator with this filter.
|
__replaceArg, _clearProperty, _set, _setProperty, annotations, annotationsCopy, annotationsEqual, annotationsRef, argIterator, args, argsCopy, arity, clearAnnotations, clearProperty, deepCopy, deepCopy, get, getProperty, setArg, setProperty, setUnboundProperty, toArray, toArrayannotationsEqual, annotationsToString, annotationsToString, annotationValueToString, checkArgs, clone, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, mutation, shortenName, toShortString, toString, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetPropertypublic BOpFilterBase(BOpFilterBase op)
op - public final Iterator filter(Iterator src, Object context)
IFilterThe filter method is provided to allow the creation of the filtering iterator.
Any implementation should follow the following pattern:
public Iterator filter(Iterator src, Object context) {
return new Filterator(src, context, this);
}
This pattern makes the source iterator, the evaluation context, and the
IPropertySet annotations visible to the runtime striterator
implementation.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.