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_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
BooleanConstantNode(boolean value,
ContextManager cm) |
BooleanConstantNode(ContextManager cm) |
BooleanConstantNode(TypeId t,
ContextManager cm) |
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.
|
(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%.
|
(package private) void |
setValue(DataValueDescriptor value)
Set the value in this ConstantNode.
|
bindExpression, constantExpression, generateExpression, getClone, getOrderableVariantType, getValue, isCloneable, isConstantExpression, isEquivalent, isNull, toString
bindExpression, categorize, changeToCNF, checkIsBoolean, checkTopPredicatesForEqualsConditions, copyFields, evaluateConstantExpressions, genEqualsFalseTree, generate, genIsNullTree, genSQLJavaSQLTree, getColumnName, getDataValueFactory, getSchemaName, getSourceResultColumn, getTableName, getTablesReferenced, getTransformed, getTypeCompiler, getTypeId, getTypeServices, isBinaryEqualsOperatorNode, isInListProbeNode, isParameterNode, isRelationalOperator, isSameNodeKind, optimizableEqualityNode, preprocess, putAndsOnTop, remapColumnReferencesToExpressions, requiresTypeFromContext, setCollationInfo, setCollationInfo, setCollationUsingCompilationSchema, setCollationUsingCompilationSchema, setNullability, setTransformed, setType, setType, setType, updatableByCursor, verifyChangeToCNF, verifyEliminateNots, verifyPutAndsOnTop
accept, acceptChildren, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContext, getContextManager, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getLongProperty, getNullNode, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, getUDTDesc, isAtomic, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, treePrint, treePrint, verifyClassExist
BooleanConstantNode(ContextManager cm) throws StandardException
cm
- context managerStandardException
BooleanConstantNode(boolean value, ContextManager cm) throws StandardException
StandardException
BooleanConstantNode(TypeId t, ContextManager cm) throws StandardException
StandardException
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 codevoid setValue(DataValueDescriptor value)
setValue
in class ConstantNode
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.