com.mysema.query.collections
Class SingleSourceIterable<I,T>

java.lang.Object
  extended by com.mysema.query.collections.AbstractIterable<I,T>
      extended by com.mysema.query.collections.SingleSourceIterable<I,T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>

public class SingleSourceIterable<I,T>
extends AbstractIterable<I,T>

Author:
tiwe

Field Summary
 
Fields inherited from class com.mysema.query.collections.AbstractIterable
evaluatorFactory, iteratorFactory, metadata
 
Constructor Summary
SingleSourceIterable(QueryMetadata metadata, ExprEvaluatorFactory evaluatorFactory, IteratorFactory iteratorFactory, Map<Expr<?>,Iterable<?>> iterables, boolean forCount)
           
 
Method Summary
protected  Iterator<I> initialIterator()
          creates the initial Iterator providing the filtered source content
protected  Iterator<I> orderedIterator(Iterator<I> it)
          reorders the filtered source Iterator based on the ordering criteria of the QueryMetadata
protected  Iterator<T> projectedIterator(Iterator<I> it)
          creates the projection based on the given Iterator and the projection definition of the QueryMetadata
 
Methods inherited from class com.mysema.query.collections.AbstractIterable
iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleSourceIterable

public SingleSourceIterable(QueryMetadata metadata,
                            ExprEvaluatorFactory evaluatorFactory,
                            IteratorFactory iteratorFactory,
                            Map<Expr<?>,Iterable<?>> iterables,
                            boolean forCount)
Method Detail

initialIterator

protected Iterator<I> initialIterator()
Description copied from class: AbstractIterable
creates the initial Iterator providing the filtered source content

Specified by:
initialIterator in class AbstractIterable<I,T>
Returns:

orderedIterator

protected Iterator<I> orderedIterator(Iterator<I> it)
Description copied from class: AbstractIterable
reorders the filtered source Iterator based on the ordering criteria of the QueryMetadata

Specified by:
orderedIterator in class AbstractIterable<I,T>
Returns:

projectedIterator

protected Iterator<T> projectedIterator(Iterator<I> it)
Description copied from class: AbstractIterable
creates the projection based on the given Iterator and the projection definition of the QueryMetadata

Specified by:
projectedIterator in class AbstractIterable<I,T>
Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.