|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.common.buffer.TupleBrowser
public class TupleBrowser
Implements intelligent browsing over a STree
TODO: this is not as efficient as it should be over partial matches
Constructor Summary | |
---|---|
TupleBrowser(STree sTree,
java.util.List<java.lang.Object> lowerBound,
java.util.List<java.lang.Object> upperBound,
boolean direction)
Construct a range based browser |
|
TupleBrowser(STree sTree,
TupleSource valueSet,
boolean direction)
Construct a value based browser. |
Method Summary | |
---|---|
void |
closeSource()
Closes the Tuple Source. |
java.util.List<?> |
nextTuple()
Returns the next tuple |
void |
removed()
Notify the browser that the last value was deleted. |
void |
update(java.util.List<?> tuple)
Perform an in-place update of the tuple just returned by the next method WARNING - this must not change the key value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TupleBrowser(STree sTree, TupleSource valueSet, boolean direction)
TupleSource
should already be in the
proper direction.
sTree
- valueSet
- direction
- public TupleBrowser(STree sTree, java.util.List<java.lang.Object> lowerBound, java.util.List<java.lang.Object> upperBound, boolean direction) throws TeiidComponentException
sTree
- lowerBound
- upperBound
- direction
-
TeiidComponentException
Method Detail |
---|
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
public void update(java.util.List<?> tuple) throws TeiidComponentException
tuple
-
TeiidComponentException
public void removed()
public void closeSource()
TupleSource
closeSource
in interface TupleSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |