Package org.teiid.common.buffer
Interface TupleSource
-
- All Known Subinterfaces:
IndexedTupleSource
- All Known Implementing Classes:
AbstractTupleSource
,BatchCollector.BatchProducerTupleSource
,BatchIterator
,CollectionTupleSource
,DataTierTupleSource
,TempTableDataManager.ProxyTupleSource
,TupleBrowser
,TupleBuffer.TupleBufferTupleSource
,TupleSourceCache.CopyOnReadTupleSource
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 useTupleBatches
behind the scenes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
closeSource()
Closes the Tuple Source.List<?>
nextTuple()
Returns the next tuple
-
-
-
Method Detail
-
nextTuple
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 exceptionTeiidProcessingException
-
closeSource
void closeSource()
Closes the Tuple Source.
-
-