com.akiban.sql.parser
Class WindowFunctionNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.ValueNode
          extended by com.akiban.sql.parser.UnaryOperatorNode
              extended by com.akiban.sql.parser.WindowFunctionNode
All Implemented Interfaces:
Visitable
Direct Known Subclasses:
AggregateWindowFunctionNode, RowNumberFunctionNode

public abstract class WindowFunctionNode
extends UnaryOperatorNode

Superclass of any window function call.


Field Summary
 
Fields inherited from class com.akiban.sql.parser.UnaryOperatorNode
methodName, operator, receiverInterfaceType, resultInterfaceType
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
WindowFunctionNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 WindowNode getWindow()
           
 void init(Object arg1, Object arg2, Object arg3)
          Initializer for a WindowFunctionNode
 boolean isConstantExpression()
          ValueNode override.
 void printSubNodes(int depth)
          QueryTreeNode override.
 void setWindow(WindowDefinitionNode wdn)
          Set window associated with this window function call.
 
Methods inherited from class com.akiban.sql.parser.UnaryOperatorNode
getMethodName, getOperand, getOperator, init, isEquivalent, setOperand, toString
 
Methods inherited from class com.akiban.sql.parser.ValueNode
getColumnName, getSchemaName, getSourceResultColumn, getTableName, getType, getTypeId, init, isBinaryEqualsOperatorNode, isBooleanFalse, isBooleanTrue, isInListProbeNode, isParameterNode, isRelationalOperator, isSameNodeType, setNullability, setType
 
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, 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

WindowFunctionNode

public WindowFunctionNode()
Method Detail

init

public void init(Object arg1,
                 Object arg2,
                 Object arg3)
          throws StandardException
Initializer for a WindowFunctionNode

Overrides:
init in class UnaryOperatorNode
Parameters:
arg1 - null (operand)
arg2 - function mame (operator)
arg3 - window node (definition or reference)
Throws:
StandardException

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class UnaryOperatorNode
Throws:
StandardException

isConstantExpression

public boolean isConstantExpression()
ValueNode override.

Overrides:
isConstantExpression in class ValueNode
Returns:
Whether or not this expression tree represents a constant expression.
See Also:
ValueNode.isConstantExpression()

getWindow

public WindowNode getWindow()
Returns:
window associated with this window function

setWindow

public void setWindow(WindowDefinitionNode wdn)
Set window associated with this window function call.

Parameters:
wdn - window definition

printSubNodes

public void printSubNodes(int depth)
QueryTreeNode override.

Overrides:
printSubNodes in class UnaryOperatorNode
Parameters:
depth - The depth of this node in the tree
See Also:
QueryTreeNode.printSubNodes(int)


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.