org.teiid.common.buffer
Interface TupleSource

All Known Subinterfaces:
IndexedTupleSource
All Known Implementing Classes:
AbstractTupleSource, BatchCollector.BatchProducerTupleSource, BatchIterator, CollectionTupleSource, TupleBrowser

public interface TupleSource

A cursored source of tuples. The implementation will likely be closely bound to a BufferManager implementation - it will work with it to use TupleBatches behind the scenes.


Method Summary
 void closeSource()
          Closes the Tuple Source.
 java.util.List<?> nextTuple()
          Returns the next tuple
 

Method Detail

nextTuple

java.util.List<?> nextTuple()
                            throws TeiidComponentException,
                                   TeiidProcessingException
Returns the next tuple

Returns:
the next tuple (a List object), or null if there are no more tuples.
Throws:
TeiidComponentException - indicating a non-business exception such as a communication exception, or other such nondeterministic exception
TeiidProcessingException

closeSource

void closeSource()
Closes the Tuple Source.



Copyright © 2010. All Rights Reserved.