List of usage examples for java.util Iterator interface-usage
From source file org.apache.gobblin.ingestion.google.webmaster.UrlTriePostOrderIterator.java
/**
* This is a post-order iterator that traverses the nodes on the URL trie with a stopping rule, which is, it will not go deeper into the nodes whose size(defined as the number of descendant URLs and itself if itself is a URL page) is less than or equal to the stopping size. In other words, those nodes with size less than or equal to the stopping size will be treated as leaf nodes.
*
* Iteration value:
* Pair.1 is the full path to current node.
* Pair.2 is current node.
From source file org.apache.crunch.io.hbase.HTableIterator.java
class HTableIterator implements Iterator<Pair<ImmutableBytesWritable, Result>> { private static final Log LOG = LogFactory.getLog(HTableIterator.class); private final HTable table; private final ResultScanner scanner; private final Iterator<Result> iter;
From source file com.qrmedia.commons.graph.traverser.AbstractNodeIteratingGraphTraverser.java
/**
* A {@link GraphTraverser} that visits nodes in the order returned by an <code>Iterator</code>,
* which subclasses should implement.
*
* @param <T> the type of graph nodes
* @param <U> the type of the state-maintaining object
From source file org.apache.olingo.ext.proxy.commons.EntitySetIterator.java
class EntitySetIterator<T extends EntityType<?>, KEY extends Serializable, EC extends EntityCollection<T, ?, ?>> implements Iterator<T> { private final EntitySetInvocationHandler<T, KEY, EC> esi; private URI next;
From source file org.sonar.server.db.ResultSetIterator.java
/**
* Forward-only {@link java.util.Iterator} over a {@link java.sql.ResultSet}. Rows are
* lazily loaded. The underlying ResultSet must be closed by calling the method
* {@link #close()}
* <p/>
* As a safeguard, the ResultSet is automatically closed after the last element has
From source file org.apache.struts2.util.IteratorGenerator.java
/** * A bean that generates an iterator filled with a given object depending on the count, * separator and converter defined. It is being used by IteratorGeneratorTag. * */ public class IteratorGenerator implements Iterator, Action {
From source file org.grouplens.lenskit.vectors.FastIntersectIterImpl.java
class FastIntersectIterImpl implements Iterator<Pair<VectorEntry, VectorEntry>> { private boolean atNext = false; private final SparseVector vec1, vec2; private IntIterator iterA, iterB; // indexes, or -1 for exhausted iterators private int idxA, idxB;
From source file org.springframework.cloud.sleuth.zipkin.stream.SamplingZipkinSpanIterator.java
/** * This converts sleuth spans to zipkin ones, skipping invalid or unsampled. */ final class SamplingZipkinSpanIterator implements Iterator<zipkin.Span> { private static final Log log = org.apache.commons.logging.LogFactory.getLog(SamplingZipkinSpanIterator.class);
From source file com.github.blacklocus.rdsecho.utl.PagingIterable.java
@NotThreadSafe class PagingIterable<T> implements Iterable<T>, Iterator<T> { final Supplier<Iterable<T>> supplier; Iterator<T> currentPage;
From source file com.sun.syndication.propono.atom.client.EntryIterator.java
/** * Enables iteration over entries in Atom protocol collection. */ public class EntryIterator implements Iterator { static final Log logger = LogFactory.getLog(EntryIterator.class); private final ClientCollection collection;