public class TupleBrowser extends Object implements TupleSource
STree
TODO: this is not as efficient as it should be over partial matchesConstructor 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
- TeiidComponentException
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
public void reset(TupleSource ts) throws TeiidComponentException
TeiidComponentException
public void update(List<?> tuple) throws TeiidComponentException
tuple
- TeiidComponentException
public void removed() throws TeiidComponentException
TeiidComponentException
public void closeSource()
TupleSource
closeSource
in interface TupleSource
Copyright © 2020. All rights reserved.