public final class BooleanConstantNode extends ConstantNode
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
booleanValue |
(package private) boolean |
unknownValue |
valuetransformedAUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX| 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, toStringbindExpression, 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, verifyPutAndsOnTopaccept, 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, verifyClassExistpublic void init(java.lang.Object arg1)
throws StandardException
init in interface Nodeinit in class QueryTreeNodearg1 - A boolean containing the value of the constant OR The TypeId for the type of the nodeStandardExceptionjava.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 codepublic void setValue(DataValueDescriptor value)
setValue in class ConstantNodeApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.