public abstract class TupleTransformer<E,F> extends FilterBase implements ITupleFilter<F>
ITupleFilter that transforms the data type
of the keys and/or values.| Modifier and Type | Field and Description |
|---|---|
protected ITupleSerializer<? extends Object,F> |
tupleSer
The serialization provider for the transformed tuples.
|
| Constructor and Description |
|---|
TupleTransformer(ITupleSerializer<? extends Object,F> tupleSer) |
| Modifier and Type | Method and Description |
|---|---|
ITupleIterator<F> |
filterOnce(Iterator src,
Object context)
Wrap the source iterator with this filter.
|
protected abstract ITupleIterator<F> |
newTransformer(LookaheadTupleFilter.ILookaheadTupleIterator<E> src,
Object context)
Method responsible for creating a new instance of the iterator that reads
from the lookahead source whose tuples are of the source type and visits
the transformed tuples.
|
addFilter, filter, getProperty, getRequiredProperty, setProperty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPropertyprotected final ITupleSerializer<? extends Object,F> tupleSer
public TupleTransformer(ITupleSerializer<? extends Object,F> tupleSer)
tupleSer - The serialization provider for the transformed tuples.public ITupleIterator<F> filterOnce(Iterator src, Object context)
FilterBasefilterOnce in interface ITupleFilter<F>filterOnce in class FilterBasesrc - The source iterator.context - The iterator evaluation context.protected abstract ITupleIterator<F> newTransformer(LookaheadTupleFilter.ILookaheadTupleIterator<E> src, Object context)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.