public class DrainedRangeFilterPipe<S>
extends com.tinkerpop.pipes.AbstractPipe<S,S>
implements com.tinkerpop.pipes.filter.FilterPipe<S>
RangeFilterPipe in Tinkerpop with the difference
being that the pipe is always fully drained even if the elements being processed would be out of range of this
filter.
This is useful in scenarios where you want all the elements processed by the previous pipes in the pipeline but you don't want elements out of the range be present in the final result. Example use case is getting the total of elements while at the same time filtering out a subset of them in a single query.
| Constructor and Description |
|---|
DrainedRangeFilterPipe(int low,
int high) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHighRange() |
int |
getLowRange() |
protected S |
processNextStart() |
void |
reset() |
String |
toString() |
enablePath, getCurrentPath, getPathToHere, hasNext, iterator, next, remove, setStarts, setStarts, setStartsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitenablePath, getCurrentPath, setStarts, setStartsforEachRemaining, hasNext, next, removeforEach, iterator, spliteratorCopyright © 2015 Red Hat, Inc.. All rights reserved.