PredicateLiteral¶
- class lsst.daf.relation.PredicateLiteral(value: bool)¶
Bases:
Predicate
A concrete boolean column expression that is a constant
True
orFalse
.Attributes Summary
Methods Summary
Attempt to simplify this expression into a constant boolean.
is_supported_by
(engine)Test whether the given engine is capable of evaluating this expression.
literal
(value)Construct a boolean expression that is a constant
True
orFalse
.Return a boolean expression that is the logical AND of the given ones.
Return a boolean expression that is the logical NOT of this one.
Return a boolean expression that is the logical OR of the given ones.
reference
(tag)Construct an expression that refers to a boolean column in a relation.
Attributes Documentation
- columns_required¶
Methods Documentation
- is_supported_by(engine: Engine) bool ¶
Test whether the given engine is capable of evaluating this expression.
- classmethod literal(value: bool) PredicateLiteral ¶
Construct a boolean expression that is a constant
True
orFalse
.- Parameters:
- value
bool
Value for the expression.
- value
- Returns:
- literal
PredicateLiteral
A boolean column expression set to the given value.
- literal
- logical_and() Predicate ¶
Return a boolean expression that is the logical AND of the given ones.
- Parameters:
- *operands
Predicate
Existing boolean expressions to AND together.
- *operands
- Returns:
- logical_and
Predicate
Logical AND expression. If no operands are provided, a
PredicateLiteral
forTrue
is returned. If one operand is provided, it is returned directly.
- logical_and
- logical_not() LogicalNot ¶
Return a boolean expression that is the logical NOT of this one.
- Returns:
- logical_not
Predicate
Logical NOT expression.
- logical_not
- logical_or() Predicate ¶
Return a boolean expression that is the logical OR of the given ones.
- Parameters:
- *operands
Predicate
Existing boolean expressions to OR together.
- *operands
- Returns:
- logical_and
Predicate
Logical OR expression. If no operands are provided, a
PredicateLiteral
forFalse
is returned. If one operand is provided, it is returned directly.
- logical_and
- classmethod reference(tag: ColumnTag) PredicateReference ¶
Construct an expression that refers to a boolean column in a relation.
- Parameters:
- tag
ColumnTag
Identifier for the column to reference.
- tag
- Returns:
- reference
PredicateReference
A column expression that refers the given relation column.
- reference