com.akiban.sql.parser
Class BitConstantNode
java.lang.Object
com.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.ValueNode
com.akiban.sql.parser.ConstantNode
com.akiban.sql.parser.BitConstantNode
- All Implemented Interfaces:
- Visitable
- Direct Known Subclasses:
- VarbitConstantNode
public class BitConstantNode
- extends ConstantNode
|
Method Summary |
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node. |
static byte[] |
fromHexString(String s,
int offset,
int length)
Convert a hexidecimal string generated by toHexString() back
into a byte array. |
void |
init(Object arg1)
Initializer for a BitConstantNode. |
void |
init(Object arg1,
Object arg2)
Initialize a query tree node. |
| 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, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, printSubNodes, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint |
BitConstantNode
public BitConstantNode()
init
public void init(Object arg1)
throws StandardException
- Initializer for a BitConstantNode.
- Overrides:
init in class QueryTreeNode
- Parameters:
arg1 - A Bit containing the value of the constant OR The TypeId for the type of the node
- Throws:
StandardException
init
public void init(Object arg1,
Object arg2)
throws StandardException
- Description copied from class:
QueryTreeNode
- Initialize a query tree node.
- Overrides:
init in class QueryTreeNode
- 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 ConstantNode
- Throws:
StandardException
fromHexString
public static byte[] fromHexString(String s,
int offset,
int length)
- Convert a hexidecimal string generated by toHexString() back
into a byte array.
- Parameters:
s - String to convertoffset - starting character (zero based) to convert.length - number of characters to convert.
- Returns:
- the converted byte array. Returns null if the length is
not a multiple of 2.
Copyright © 2013 Akiban Technologies, Inc. All rights reserved.