org.teiid.common.buffer
Interface IndexedTupleSource

All Superinterfaces:
TupleSource
All Known Implementing Classes:
AbstractTupleSource, BatchIterator

public interface IndexedTupleSource
extends TupleSource


Method Summary
 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 org.teiid.common.buffer.TupleSource
closeSource, nextTuple
 

Method Detail

hasNext

boolean hasNext()
                throws TeiidComponentException,
                       TeiidProcessingException
Returns:
true if there are more tuples
Throws:
TeiidComponentException
TeiidProcessingException

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:


Copyright © 2010. All Rights Reserved.