com.akiban.sql.parser
Class ExtractOperatorNode
java.lang.Object
com.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.ValueNode
com.akiban.sql.parser.UnaryOperatorNode
com.akiban.sql.parser.ExtractOperatorNode
- All Implemented Interfaces:
- Visitable
public class ExtractOperatorNode
- extends UnaryOperatorNode
This node represents a unary extract operator, used to extract
a field from a date/time. The field value is returned as an integer.
| Methods inherited from class com.akiban.sql.parser.ValueNode |
getColumnName, getSchemaName, getSourceResultColumn, getTableName, getType, getTypeId, init, isBinaryEqualsOperatorNode, isBooleanFalse, isBooleanTrue, isConstantExpression, 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, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint |
ExtractOperatorNode
public ExtractOperatorNode()
init
public void init(Object field,
Object operand)
throws StandardException
- Initializer for a ExtractOperatorNode
- Overrides:
init in class QueryTreeNode
- Parameters:
field - The field to extractoperand - The operand
- Throws:
StandardException - Thrown on error
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
toString
public String toString()
- Description copied from class:
UnaryOperatorNode
- Convert this object to a String. See comments in QueryTreeNode.java
for how this should be done for tree printing.
- Overrides:
toString in class UnaryOperatorNode
- Returns:
- This object as a String
Copyright © 2013 Akiban Technologies, Inc. All rights reserved.