|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.common.buffer.AbstractTupleSource
public abstract class AbstractTupleSource
Field Summary | |
---|---|
protected TupleBatch |
batch
|
Constructor Summary | |
---|---|
AbstractTupleSource()
|
Method Summary | |
---|---|
protected abstract int |
available()
|
void |
closeSource()
Closes the Tuple Source. |
protected abstract java.util.List<?> |
finalRow()
|
protected abstract TupleBatch |
getBatch(int row)
|
int |
getCurrentIndex()
Get the current position. |
protected java.util.List<?> |
getCurrentTuple()
|
boolean |
hasNext()
|
void |
mark()
Save the current position that can be restored with a call to IndexedTupleSource.reset() |
java.util.List<?> |
nextTuple()
Returns the next tuple |
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TupleBatch batch
Constructor Detail |
---|
public AbstractTupleSource()
Method Detail |
---|
public int getCurrentIndex()
IndexedTupleSource
TupleSource.nextTuple()
getCurrentIndex
in interface IndexedTupleSource
public java.util.List<?> nextTuple() throws TeiidComponentException, TeiidProcessingException
TupleSource
nextTuple
in interface TupleSource
null
if
there are no more tuples.
TeiidComponentException
- indicating a non-business
exception such as a communication exception, or other such
nondeterministic exception
TeiidProcessingException
protected java.util.List<?> getCurrentTuple() throws TeiidComponentException, BlockedException, TeiidProcessingException
TeiidComponentException
BlockedException
TeiidProcessingException
protected abstract java.util.List<?> finalRow() throws BlockedException, TeiidComponentException, TeiidProcessingException
BlockedException
TeiidComponentException
TeiidProcessingException
protected abstract TupleBatch getBatch(int row) throws TeiidComponentException, TeiidProcessingException
TeiidComponentException
TeiidProcessingException
protected abstract int available()
public void closeSource()
TupleSource
closeSource
in interface TupleSource
public boolean hasNext() throws TeiidComponentException, TeiidProcessingException
hasNext
in interface IndexedTupleSource
TeiidComponentException
TeiidProcessingException
public void reset()
IndexedTupleSource
reset
in interface IndexedTupleSource
public void mark()
IndexedTupleSource
IndexedTupleSource.reset()
mark
in interface IndexedTupleSource
public void setPosition(int position)
IndexedTupleSource
setPosition
in interface IndexedTupleSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |