com.metamatrix.common.buffer
Interface IndexedTupleSource

All Superinterfaces:
TupleSource

public interface IndexedTupleSource
extends TupleSource


Method Summary
 TupleBatch getBatch()
           
 int getCurrentIndex()
          Get the current position.
 boolean hasNext()
           
 void mark()
          Save the current position that can be restored with a call to reset()
 void reset()
          Restore the previous mark and set the mark back to the first position.
 void setPosition(int position)
          Set the tuple source position
 
Methods inherited from interface com.metamatrix.common.buffer.TupleSource
closeSource, getSchema, nextTuple
 

Method Detail

hasNext

boolean hasNext()
                throws MetaMatrixComponentException,
                       MetaMatrixProcessingException
Returns:
true if there are more tuples
Throws:
MetaMatrixComponentException
MetaMatrixProcessingException

mark

void mark()
Save the current position that can be restored with a call to reset()


reset

void reset()
Restore the previous mark and set the mark back to the first position.


setPosition

void setPosition(int position)
Set the tuple source position

Parameters:
position -

getCurrentIndex

int getCurrentIndex()
Get the current position. The position is 1 based and reports the position of the tuple that will be retrieved with a call to TupleSource.nextTuple()

Returns:

getBatch

TupleBatch getBatch()
                    throws MetaMatrixComponentException
Throws:
MetaMatrixComponentException


Copyright © 2009. All Rights Reserved.