Methods Summary |
---|
public java.lang.String | execute()
// Make source transformations
for (int i = 0; i < sources.size(); i++) {
Object source = sources.get(i);
iterators.add(getIterator(source));
}
return SUCCESS;
|
public boolean | hasNext()
while (iterators.size() > 0) {
if (((Iterator) iterators.get(idx)).hasNext()) {
return true;
} else {
iterators.remove(idx);
if (iterators.size() > 0) {
idx = idx % iterators.size();
}
}
}
return false;
|
public java.lang.Object | next()
try {
return ((Iterator) iterators.get(idx)).next();
} finally {
idx = (idx + 1) % iterators.size();
}
|
public void | remove()
throw new UnsupportedOperationException("Remove is not supported in MergeIteratorFilter.");
|
public void | setSource(java.lang.Object anIterator)
// Public --------------------------------------------------------
sources.add(anIterator);
|