public abstract class AbstractTupleSource extends Object implements IndexedTupleSource
| Modifier and Type | Field and Description |
|---|---|
protected TupleBatch |
batch |
protected List<?> |
currentTuple |
| Constructor and Description |
|---|
AbstractTupleSource() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract long |
available() |
void |
closeSource()
Closes the Tuple Source.
|
protected abstract List<?> |
finalRow() |
protected abstract TupleBatch |
getBatch(long row) |
long |
getCurrentIndex()
Get the current position.
|
protected List<?> |
getCurrentTuple() |
boolean |
hasNext() |
void |
mark()
Save the current position that can be restored with a call to
IndexedTupleSource.reset() |
List<?> |
nextTuple()
Returns the next tuple
|
void |
reset()
Restore the previous mark and set the mark back to the first position.
|
void |
setPosition(long position)
Set the tuple source position
|
protected List<?> currentTuple
protected TupleBatch batch
public long getCurrentIndex()
IndexedTupleSourceTupleSource.nextTuple()getCurrentIndex in interface IndexedTupleSourcepublic List<?> nextTuple() throws TeiidComponentException, TeiidProcessingException
TupleSourcenextTuple in interface TupleSourcenull if
there are no more tuples.TeiidComponentException - indicating a non-business
exception such as a communication exception, or other such
nondeterministic exceptionTeiidProcessingExceptionprotected List<?> getCurrentTuple() throws TeiidComponentException, BlockedException, TeiidProcessingException
protected abstract List<?> finalRow() throws BlockedException, TeiidComponentException, TeiidProcessingException
protected abstract TupleBatch getBatch(long row) throws TeiidComponentException, TeiidProcessingException
protected abstract long available()
public void closeSource()
TupleSourcecloseSource in interface TupleSourcepublic boolean hasNext()
throws TeiidComponentException,
TeiidProcessingException
hasNext in interface IndexedTupleSourceTeiidComponentExceptionTeiidProcessingExceptionpublic void reset()
IndexedTupleSourcereset in interface IndexedTupleSourcepublic void mark()
throws TeiidComponentException
IndexedTupleSourceIndexedTupleSource.reset()mark in interface IndexedTupleSourceTeiidComponentExceptionpublic void setPosition(long position)
IndexedTupleSourcesetPosition in interface IndexedTupleSourceCopyright © 2018 JBoss by Red Hat. All rights reserved.