com.akiban.sql.parser
Class BitConstantNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.ValueNode
          extended by com.akiban.sql.parser.ConstantNode
              extended by com.akiban.sql.parser.BitConstantNode
All Implemented Interfaces:
Visitable
Direct Known Subclasses:
VarbitConstantNode

public class BitConstantNode
extends ConstantNode


Field Summary
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
BitConstantNode()
           
 
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.ConstantNode
getValue, init, isConstantExpression, isEquivalent, setValue, 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, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, printSubNodes, 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

BitConstantNode

public BitConstantNode()
Method Detail

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 convert
offset - 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.