|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.processor.NullTupleSource
public class NullTupleSource
This class can be used to represent null tuples or no data for an atomic query execution. Example usage is in implementation of partial results feature where we have to return null tuples if there is an error in the execution of atomic query.
Constructor Summary | |
---|---|
NullTupleSource(java.util.List elements)
Constructor that takes the list of elementSymbols that have null rows. |
Method Summary | |
---|---|
void |
closeSource()
Close the tuple source after reading tuples. |
java.util.List |
getSchema()
Returns the List of ElementSymbol describing the Tuple Source |
java.util.List |
nextTuple()
This method returns a null indicating, that there are no rows in the source. |
void |
openSource()
Open the tuple source to read tuples. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullTupleSource(java.util.List elements)
Constructor that takes the list of elementSymbols that have null rows.
elements
- List of elementSymbols that this source contains.Method Detail |
---|
public java.util.List getSchema()
TupleSource
getSchema
in interface TupleSource
TupleSource.getSchema()
public void openSource()
Open the tuple source to read tuples. This method does nothing.
public java.util.List nextTuple()
This method returns a null indicating, that there are no rows in the source.
nextTuple
in interface TupleSource
public void closeSource()
Close the tuple source after reading tuples. This method does nothing.
closeSource
in interface TupleSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |