com.metamatrix.common.buffer
Interface TupleSource

All Known Subinterfaces:
IndexedTupleSource
All Known Implementing Classes:
NullTupleSource, UpdateCountTupleSource

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 getSchema()
          Returns the List of ElementSymbol describing the Tuple Source
 java.util.List nextTuple()
          Returns the next tuple
 

Method Detail

getSchema

java.util.List getSchema()
Returns the List of ElementSymbol describing the Tuple Source

Returns:
the List of elements describing the Tuple Source

nextTuple

java.util.List nextTuple()
                         throws MetaMatrixComponentException,
                                MetaMatrixProcessingException
Returns the next tuple

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

closeSource

void closeSource()
                 throws MetaMatrixComponentException
Closes the Tuple Source.

Throws:
MetaMatrixComponentException - indicating a non-business exception such as a communication exception, or other such nondeterministic exception


Copyright © 2009. All Rights Reserved.