Example usage for com.google.common.collect ForwardingIterator subclass-usage

List of usage examples for com.google.common.collect ForwardingIterator subclass-usage

Introduction

In this page you can find the example usage for com.google.common.collect ForwardingIterator subclass-usage.

Usage

From source file com.googlecode.wmbutil.XPathIterator.java

public class XPathIterator extends ForwardingIterator<MbElement> {

    private Iterator<MbElement> matches = Iterators.emptyIterator();

    public XPathIterator(MbElement element, MbXPath xpath) throws MbException {
        Object result = checkNotNull(element).evaluateXPath(checkNotNull(xpath));

From source file org.apache.mahout.common.iterator.FixedSizeSamplingIterator.java

/**
 * Sample a fixed number of elements from an Iterator. The results can appear in any order.
 */
public final class FixedSizeSamplingIterator<T> extends ForwardingIterator<T> {

    private final Iterator<T> delegate;

From source file org.codelibs.elasticsearch.taste.common.iterator.FixedSizeSamplingIterator.java

/**
 * Sample a fixed number of elements from an Iterator. The results can appear in any order.
 */
public final class FixedSizeSamplingIterator<T> extends ForwardingIterator<T> {

    private final Iterator<T> delegate;

From source file org.apache.mahout.common.iterator.CopyConstructorIterator.java

/**
 * An iterator that copies the values in an underlying iterator by finding an appropriate copy constructor.
 */
public final class CopyConstructorIterator<T> extends ForwardingIterator<T> {

    private final Iterator<T> delegate;

From source file org.apache.mahout.fpm.pfpgrowth.convertors.TransactionIterator.java

/**
 * Iterates over a Transaction and outputs the transaction integer id mapping and the support of the
 * transaction
 */
public class TransactionIterator<T> extends ForwardingIterator<Pair<int[], Long>> {

From source file org.apache.mahout.common.iterator.StringRecordIterator.java

public class StringRecordIterator extends ForwardingIterator<Pair<List<String>, Long>> {

    private static final Long ONE = 1L;

    private final Pattern splitter;
    private final Iterator<Pair<List<String>, Long>> delegate;

From source file org.gpfvic.mahout.cf.taste.impl.common.jdbc.ResultSetIterator.java

public abstract class ResultSetIterator<T> extends ForwardingIterator<T> {

    private final Iterator<T> delegate;
    private final EachRowIterator rowDelegate;

    protected ResultSetIterator(DataSource dataSource, String sqlQuery) throws SQLException {

From source file org.apache.mahout.cf.taste.impl.common.jdbc.ResultSetIterator.java

public abstract class ResultSetIterator<T> extends ForwardingIterator<T> {

    private final Iterator<T> delegate;
    private final EachRowIterator rowDelegate;

    protected ResultSetIterator(DataSource dataSource, String sqlQuery) throws SQLException {

From source file com.cg.mapreduce.fpgrowth.mahout.fpm.convertors.TransactionIterator.java

/**
 * Iterates over a Transaction and outputs the transaction integer id mapping and the support of the
 * transaction
 */
@Deprecated
public class TransactionIterator<T> extends ForwardingIterator<Pair<int[], Long>> {

From source file org.apache.mahout.freqtermsets.convertors.TransactionIterator.java

/**
 * Iterates over a Transaction and outputs the transaction integer id mapping and the support of the
 * transaction
 */
public class TransactionIterator<T> extends ForwardingIterator<Pair<int[], Long>> {