org.apache.derby.impl.sql.compile
Class ResultSetNode
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.QueryTreeNode
-
- org.apache.derby.impl.sql.compile.ResultSetNode
-
- All Implemented Interfaces:
- Visitable
- Direct Known Subclasses:
- CurrentOfNode, IntersectOrExceptNode, RowCountNode
public abstract class ResultSetNode extends QueryTreeNode
A ResultSetNode represents a result set, that is, a set of rows. It is analogous to a ResultSet in the LanguageModuleExternalInterface. In fact, code generation for a a ResultSetNode will create a "new" call to a constructor for a ResultSet.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description JBitSetgetReferencedTableMap()Get the referencedTableMap for this ResultSetNode.intgetResultSetNumber()Get the resultSetNumber in this ResultSetNode.ResultDescriptionmakeResultDescription()Make a ResultDescription for use in a ResultSet.ValueNodeparseDefault(java.lang.String defaultText)Parse a default and turn it into a query tree.java.lang.StringtoString()Convert this object to a String.-
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, addTag, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, createTypeDependency, getBeginOffset, getDataDictionary, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getUDTDesc, isAtomic, makeConstantAction, makeTableName, makeTableName, optimizerTracingIsOn, orReliability, referencesSessionSchema, setBeginOffset, setEndOffset, taggedWith, treePrint
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.- Overrides:
toStringin classQueryTreeNode- Returns:
- This object as a String
-
getResultSetNumber
public int getResultSetNumber()
Get the resultSetNumber in this ResultSetNode. Expected to be set during generate(). Must be public in order to satisfy the Optimizable contract.- Returns:
- int The resultSetNumber.
-
getReferencedTableMap
public JBitSet getReferencedTableMap()
Get the referencedTableMap for this ResultSetNode. Must be public in order to satisfy the Optimizable contract.- Returns:
- JBitSet Referenced table map for this ResultSetNode
-
parseDefault
public ValueNode parseDefault(java.lang.String defaultText) throws StandardException
Parse a default and turn it into a query tree.- Parameters:
defaultText- Text of Default.- Returns:
- The parsed default as a query tree.
- Throws:
StandardException- Thrown on failure
-
makeResultDescription
public ResultDescription makeResultDescription()
Make a ResultDescription for use in a ResultSet. This is useful when generating/executing a NormalizeResultSet, since it can appear anywhere in the tree.- Returns:
- A ResultDescription for this ResultSetNode.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG