com.mysema.query.collections
Class MultiSourceIterable<T>

java.lang.Object
  extended by com.mysema.query.collections.AbstractIterable<Object[],T>
      extended by com.mysema.query.collections.MultiSourceIterable<T>
All Implemented Interfaces:
Iterable<T>

public class MultiSourceIterable<T>
extends AbstractIterable<Object[],T>

Author:
tiwe

Field Summary
 
Fields inherited from class com.mysema.query.collections.AbstractIterable
evaluatorFactory, iteratorFactory, metadata
 
Constructor Summary
MultiSourceIterable(QueryMetadata metadata, ExprEvaluatorFactory evaluatorFactory, IteratorFactory iteratorFactory, Map<Expr<?>,Iterable<?>> iterables, boolean forCount)
           
 
Method Summary
protected  Iterator<Object[]> initialIterator()
          creates the initial Iterator providing the filtered source content
protected  Iterator<Object[]> orderedIterator(Iterator<Object[]> it)
          reorders the filtered source Iterator based on the ordering criteria of the QueryMetadata
protected  Iterator<T> projectedIterator(Iterator<Object[]> 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

MultiSourceIterable

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

initialIterator

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

Specified by:
initialIterator in class AbstractIterable<Object[],T>
Returns:

orderedIterator

protected Iterator<Object[]> orderedIterator(Iterator<Object[]> 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<Object[],T>
Returns:

projectedIterator

protected Iterator<T> projectedIterator(Iterator<Object[]> 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<Object[],T>
Returns:


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