Visitablepublic final class BooleanConstantNode extends ConstantNode
| Modifier and Type | Field | Description |
|---|---|---|
(package private) boolean |
booleanValue |
|
(package private) boolean |
unknownValue |
valueAUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEXtransformed| Constructor | Description |
|---|---|
BooleanConstantNode(boolean value,
ContextManager cm) |
|
BooleanConstantNode(ContextManager cm) |
|
BooleanConstantNode(TypeId t,
ContextManager cm) |
| Modifier and Type | Method | 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, 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, verifyClassExistbindExpression, 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, verifyPutAndsOnTopBooleanConstantNode(ContextManager cm) throws StandardException
cm - context managerStandardExceptionBooleanConstantNode(boolean value,
ContextManager cm)
throws StandardException
StandardExceptionBooleanConstantNode(TypeId t, ContextManager cm) throws StandardException
StandardExceptionjava.lang.Object getConstantValueAsObject()
getConstantValueAsObject in class ValueNodejava.lang.String getValueAsString()
boolean isBooleanTrue()
isBooleanTrue in class ValueNodeboolean isBooleanFalse()
isBooleanFalse in class ValueNodepublic double selectivity(Optimizable optTable)
selectivity in class ValueNodeValueNode eliminateNots(boolean underNotNode)
eliminateNots in class ValueNodeunderNotNode - Whether or not we are under a NotNode.void generateConstant(ExpressionClassBuilder acb, MethodBuilder mb)
generateConstant in class ConstantNodeacb - The ExpressionClassBuilder for the class being builtmb - The method the code to place the codevoid setValue(DataValueDescriptor value)
setValue in class ConstantNodeApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.