|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.ValueNode
org.apache.derby.impl.sql.compile.ConstantNode
org.apache.derby.impl.sql.compile.BooleanConstantNode
public final class BooleanConstantNode
| Field Summary | |
|---|---|
(package private) boolean |
booleanValue
|
(package private) boolean |
unknownValue
|
| Fields inherited from class org.apache.derby.impl.sql.compile.ConstantNode |
|---|
value |
| Fields inherited from class org.apache.derby.impl.sql.compile.ValueNode |
|---|
transformed |
| Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired |
| Constructor Summary | |
|---|---|
BooleanConstantNode()
|
|
| Method Summary | |
|---|---|
(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. |
| Methods inherited from class org.apache.derby.impl.sql.compile.ConstantNode |
|---|
bindExpression, constantExpression, generateExpression, getClone, getOrderableVariantType, getValue, init, isCloneable, isConstantExpression, isEquivalent, isNull, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
boolean booleanValue
boolean unknownValue
| Constructor Detail |
|---|
public BooleanConstantNode()
| Method Detail |
|---|
public 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 node
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 codepublic void setValue(DataValueDescriptor value)
setValue in class ConstantNode
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||