public class TupleBrowser extends Object implements TupleSource
STree
TODO: this is not as efficient as it should be over partial matches| Constructor and Description |
|---|
TupleBrowser(STree sTree,
List<Object> lowerBound,
List<Object> upperBound,
boolean direction,
boolean readOnly)
Construct a range based browser
|
TupleBrowser(STree sTree,
TupleSource valueSet,
boolean direction)
Construct a value based browser.
|
TupleBrowser(STree sTree,
TupleSource valueSet,
boolean direction,
boolean readOnly)
Construct a value based browser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeSource()
Closes the Tuple Source.
|
List<?> |
nextTuple()
Returns the next tuple
|
void |
removed()
Notify the browser that the last value was deleted.
|
void |
reset(TupleSource ts) |
void |
update(List<?> tuple)
Perform an in-place update of the tuple just returned by the next method
WARNING - this must not change the key value
|
public TupleBrowser(STree sTree, TupleSource valueSet, boolean direction)
TupleSource should already be in the
proper direction.sTree - valueSet - direction - public TupleBrowser(STree sTree, TupleSource valueSet, boolean direction, boolean readOnly)
TupleSource should already be in the
proper direction.sTree - valueSet - direction - readOnly - public TupleBrowser(STree sTree, List<Object> lowerBound, List<Object> upperBound, boolean direction, boolean readOnly) throws TeiidComponentException
sTree - lowerBound - upperBound - direction - TeiidComponentExceptionpublic 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 exceptionTeiidProcessingExceptionpublic void reset(TupleSource ts) throws TeiidComponentException
TeiidComponentExceptionpublic void update(List<?> tuple) throws TeiidComponentException
tuple - TeiidComponentExceptionpublic void removed()
throws TeiidComponentException
TeiidComponentExceptionpublic void closeSource()
TupleSourcecloseSource in interface TupleSourceCopyright © 2017 JBoss by Red Hat. All rights reserved.