Example usage for java.util Iterator interface-usage

List of usage examples for java.util Iterator interface-usage

Introduction

In this page you can find the example usage for java.util Iterator interface-usage.

Usage

From source file org.cartoweb.stats.imports.StatsReader.java

public abstract class StatsReader implements Iterator<StatsRecord> {
    private static final Log LOGGER = LogFactory.getLog(StatsReader.class);
    private final BufferedReader reader;

    protected final SideTables sideTables;
    private final boolean wantLayers;

From source file org.apache.kylin.storage.hbase.cube.v2.ExpectedSizeIterator.java

class ExpectedSizeIterator implements Iterator<byte[]> {
    private BlockingQueue<byte[]> queue;
    private int expectedSize;
    private int current = 0;
    private int coprocessorTimeout;
    private long deadline;

From source file org.apache.cassandra.io.sstable.ReducingKeyIterator.java

public class ReducingKeyIterator implements Iterator<DecoratedKey>, Closeable {
    private final CollatingIterator ci;
    private final ReducingIterator<DecoratedKey, DecoratedKey> iter;

    public ReducingKeyIterator(Collection<SSTableReader> sstables) {
        ci = FBUtilities.getCollatingIterator();

From source file org.apache.crunch.io.text.csv.CSVRecordIterator.java

/**
 * An {@code Iterator} for an internally created {@code CSVLineReader}
 */
public class CSVRecordIterator implements Iterator<String>, Closeable {

    private static final Log LOG = LogFactory.getLog(CSVRecordIterator.class);

From source file org.apache.stratos.throttling.manager.utils.DataProviderIterator.java

public class DataProviderIterator implements Iterator {
    private static final Log log = LogFactory.getLog(DataProviderIterator.class);
    private ThreadLocal<Integer> index = new ThreadLocal<Integer>() {
        protected Integer initialValue() {
            return 0;
        }

From source file JoinedIterator.java

/**
 * An JoinedIterator is an Iterator that wraps a number of Iterators.
 *
 * This class makes multiple iterators look like one to the caller.
 * When any method from the Iterator interface is called, the JoinedIterator
 * will delegate to a single underlying Iterator. The JoinedIterator will

From source file com.github.helenusdriver.commons.collections.iterators.CombinationIterator.java

/**
 * The <code>CombinationIterator</code> class defines an iterator capable of
 * combining iterating all possible combinations of multiple collections. At
 * each step, it returns a list of elements where each element correspond to the
 * iterated element of the collection specified at the same index
 *

From source file 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 de.dhke.projects.cutil.collections.iterator.MultiMapEntryIterator.java

/**
 *
 * @param <K> 
 * @param <V> 
 * @author Peter Wullinger <java@dhke.de>
 */

From source file com.rometools.propono.atom.client.EntryIterator.java

/**
 * Enables iteration over entries in Atom protocol collection.
 */
public class EntryIterator implements Iterator<ClientEntry> {

    private static final Logger LOG = LoggerFactory.getLogger(EntryIterator.class);