cdqa.iterator

Class Scan


public final class Scan
extends UnaryOpIterator

Nested Class Summary

Nested classes/interfaces inherited from class cdqa.iterator.Iterator

Iterator.IteratorManager

Field Summary

(package private) UnaryPredicate
p

Fields inherited from class cdqa.iterator.UnaryOpIterator

i

Fields inherited from class cdqa.iterator.Iterator

NULL, current, initValue

Constructor Summary

Scan(Iterator i, UnaryPredicate p)

Method Summary

XObject
pumpNext()
returns the next object such that p(o)

Methods inherited from class cdqa.iterator.UnaryOpIterator

debugPrint, postInit, preClose, pumpNext, setIterator

Methods inherited from class cdqa.iterator.Iterator

aggreg, all, and, asBooleanIterator, close, constant, constant, constant, constant, constant, debugPrint, empty, exist, getCurrent, init, init, join, join, list, ljoin, ljoin, mTOm, map, mapL, mapL, mapL, next, not, or, postInit, preClose, pumpNext, rjoin, rjoin, scan, scan, theFalseIterator, theTrueIterator, toPrintWriter

Field Details

p

(package private)  UnaryPredicate p

Constructor Details

Scan

public Scan(Iterator i,
            UnaryPredicate p)

Method Details

pumpNext

public XObject pumpNext()
returns the next object such that p(o)
Overrides:
pumpNext in interface UnaryOpIterator