com.akiban.sql.parser
Class RowCountNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.ResultSetNode
          extended by com.akiban.sql.parser.FromTable
              extended by 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.


Field Summary
 
Fields inherited from class com.akiban.sql.parser.FromTable
correlationName, origTableName, tableProperties
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
RowCountNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 ResultSetNode getChildResult()
          Return the childResult from this node.
 void init(Object childResult, Object tableProperties)
          Initialilzer for a SingleChildResultSetNode.
 void init(Object childResult, Object rcl, Object offset, Object fetchFirst)
          Initializer for a RowCountNode
 void printSubNodes(int depth)
          Prints the sub-nodes of this object.
 String toString()
          Convert this object to a String.
 
Methods inherited from class com.akiban.sql.parser.FromTable
getCorrelationName, getExposedName, getOrigTableName, getTableName, setCorrelationName, setOrigTableName
 
Methods inherited from class com.akiban.sql.parser.ResultSetNode
getResultColumns, setInsertSource, setResultColumns
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RowCountNode

public RowCountNode()
Method Detail

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 ResultSetNode
tableProperties - 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.