List of usage examples for com.google.common.collect UnmodifiableIterator subclass-usage
From source file org.apache.cassandra.db.rows.WrappingRowIterator.java
/**
* Abstract class to make writing atom iterators that wrap another iterator
* easier. By default, the wrapping iterator simply delegate every call to
* the wrapped iterator so concrete implementations will override some of the
* methods.
*/
From source file eu.trentorise.opendata.semtext.TermIterator.java
/** * Iterator for all the terms in the text (regardless of the sentences). Allows * also getting the current term/sentence without moving the iterator. Does not * support remove operation. */ class TermIterator extends UnmodifiableIterator<Term> {
From source file org.apache.crunch.io.impl.AutoClosingIterator.java
/** * Closes the wrapped {@code Closeable} when {@link #hasNext()} returns false. As long a client loops through to * completion (doesn't abort early due to an exception, short circuit, etc.) resources will be closed automatically. */ public class AutoClosingIterator<T> extends UnmodifiableIterator<T> implements Closeable { private final Iterator<T> iter;
From source file org.apache.cassandra.db.rows.WrappingUnfilteredRowIterator.java
/**
* Abstract class to make writing unfiltered iterators that wrap another iterator
* easier. By default, the wrapping iterator simply delegate every call to
* the wrapped iterator so concrete implementations will have to override
* some of the methods.
* <p>
From source file com.stottlerhenke.versionspaces.VSJoinIterator.java
/** * @author rcreswick * */ public class VSJoinIterator<I1, I2, O1, O2> extends UnmodifiableIterator<ConfidentHypothesis<Pair<I1, I2>, Pair<O1, O2>>> {
From source file com.stottlerhenke.versionspaces.VSTransformIterator.java
/** * @author rcreswick * */ public class VSTransformIterator<Ip, Op, Ic, Oc> extends UnmodifiableIterator<ConfidentHypothesis<Ip, Op>> {
From source file org.apache.giraph.examples.linerank.IncidentVerticesIterator.java
public class IncidentVerticesIterator extends UnmodifiableIterator<IntWritable> { private final Iterator<Edge<IntWritable, Directions>> edges; private IntWritable currentTargetVertex; private final IntWritable reusable;
From source file org.apache.giraph.examples.linerank.IncidentAndAdjacentIterator.java
public class IncidentAndAdjacentIterator extends UnmodifiableIterator<IntWritable> { private final Iterator<Edge<IntWritable, Directions>> edges; private IntWritable currentTargetVertex; private final IntWritable reusable;
From source file org.apache.kylin.storage.gtrecord.PartitionResultIterator.java
/**
* Support iterate over {@code GTRecord}s in storage partition result.
*
* <p>Note that the implementation returns the same object for next().
* Client needs to copy the returned record when needed.
*/
From source file com.analog.lyric.collect.CombinatoricIterator.java
/**
* Iterates through all combinations of arrays of elements.
* <p>
* Given an array of arrays defining the possible elements for position of the output array,
* this will iterate over every combination of the elements.
* <p>