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()
IndexedTupleSource
TupleSource.nextTuple()
getCurrentIndex
in interface IndexedTupleSource
public 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 exceptionTeiidProcessingException
protected 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()
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() throws TeiidComponentException
IndexedTupleSource
IndexedTupleSource.reset()
mark
in interface IndexedTupleSource
TeiidComponentException
public void setPosition(long position)
IndexedTupleSource
setPosition
in interface IndexedTupleSource
Copyright © 2018 JBoss by Red Hat. All rights reserved.