com.akiban.sql.parser
Class RowCountNode
java.lang.Object
com.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.ResultSetNode
com.akiban.sql.parser.FromTable
com.akiban.sql.parser.RowCountNode
- All Implemented Interfaces:
- Visitable
public final class RowCountNode
- extends FromTable
The result set generated by this node (RowCountResultSet) implements the
filtering of rows needed for the and the . It sits on top of the normal SELECT's top result set, but under any
ScrollInsensitiveResultSet. The latter's positioning is needed for the correct
functioning of and in the
presence of scrollable and/or updatable result sets and CURRENT OF cursors.
| Methods inherited from class com.akiban.sql.parser.QueryTreeNode |
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint |
RowCountNode
public RowCountNode()
init
public void init(Object childResult,
Object rcl,
Object offset,
Object fetchFirst)
throws StandardException
- Initializer for a RowCountNode
- Overrides:
init in class QueryTreeNode
- Throws:
StandardException
copyFrom
public void copyFrom(QueryTreeNode node)
throws StandardException
- Fill this node with a deep copy of the given node.
- Throws:
StandardException
toString
public String toString()
- Convert this object to a String. See comments in QueryTreeNode.java
for how this should be done for tree printing.
- Overrides:
toString in class FromTable
- Returns:
- This object as a String
init
public void init(Object childResult,
Object tableProperties)
- Initialilzer for a SingleChildResultSetNode.
- Overrides:
init in class FromTable
- Parameters:
childResult - The child ResultSetNodetableProperties - Properties list associated with the table
getChildResult
public ResultSetNode getChildResult()
- Return the childResult from this node.
- Returns:
- ResultSetNode The childResult from this node.
printSubNodes
public void printSubNodes(int depth)
- Prints the sub-nodes of this object. See QueryTreeNode.java for
how tree printing is supposed to work.
- Overrides:
printSubNodes in class ResultSetNode
- Parameters:
depth - The depth of this node in the tree
Copyright © 2013 Akiban Technologies, Inc. All rights reserved.