public final class BooleanConstantNode extends ConstantNode
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
booleanValue |
(package private) boolean |
unknownValue |
value
transformed
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired
Constructor and Description |
---|
BooleanConstantNode() |
Modifier and Type | Method and Description |
---|---|
(package private) ValueNode |
eliminateNots(boolean underNotNode)
Eliminate NotNodes in the current query block.
|
(package private) void |
generateConstant(ExpressionClassBuilder acb,
MethodBuilder mb)
This generates the proper constant.
|
(package private) java.lang.Object |
getConstantValueAsObject()
Return an Object representing the bind time value of this
expression tree.
|
(package private) java.lang.String |
getValueAsString()
Return the value as a string.
|
void |
init(java.lang.Object arg1)
Initializer for a BooleanConstantNode.
|
(package private) boolean |
isBooleanFalse()
Does this represent a false constant.
|
(package private) boolean |
isBooleanTrue()
Does this represent a true constant.
|
double |
selectivity(Optimizable optTable)
The default selectivity for value nodes is 50%.
|
void |
setValue(DataValueDescriptor value)
Set the value in this ConstantNode.
|
bindExpression, constantExpression, generateExpression, getClone, getOrderableVariantType, getValue, init, isCloneable, isConstantExpression, isEquivalent, isNull, toString
bindExpression, categorize, changeToCNF, checkIsBoolean, checkTopPredicatesForEqualsConditions, copyFields, evaluateConstantExpressions, genEqualsFalseTree, generate, generateFilter, genIsNullTree, genSQLJavaSQLTree, getColumnName, getDataValueFactory, getSchemaName, getSourceResultColumn, getTableName, getTablesReferenced, getTransformed, getTypeCompiler, getTypeId, getTypeServices, init, isBinaryEqualsOperatorNode, isInListProbeNode, isParameterNode, isRelationalOperator, isSameNodeType, optimizableEqualityNode, preprocess, putAndsOnTop, remapColumnReferencesToExpressions, requiresTypeFromContext, setCollationInfo, setCollationInfo, setCollationUsingCompilationSchema, setCollationUsingCompilationSchema, setNullability, setTransformed, setType, setType, setType, updatableByCursor, verifyChangeToCNF, verifyEliminateNots, verifyPutAndsOnTop
accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExist
public void init(java.lang.Object arg1) throws StandardException
init
in interface Node
init
in class QueryTreeNode
arg1
- A boolean containing the value of the constant OR The TypeId for the type of the nodeStandardException
java.lang.Object getConstantValueAsObject()
getConstantValueAsObject
in class ValueNode
java.lang.String getValueAsString()
boolean isBooleanTrue()
isBooleanTrue
in class ValueNode
boolean isBooleanFalse()
isBooleanFalse
in class ValueNode
public double selectivity(Optimizable optTable)
selectivity
in class ValueNode
ValueNode eliminateNots(boolean underNotNode)
eliminateNots
in class ValueNode
underNotNode
- Whether or not we are under a NotNode.void generateConstant(ExpressionClassBuilder acb, MethodBuilder mb)
generateConstant
in class ConstantNode
acb
- The ExpressionClassBuilder for the class being builtmb
- The method the code to place the codepublic void setValue(DataValueDescriptor value)
setValue
in class ConstantNode
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.