ScalarExpressionProxy¶
- class lsst.daf.butler.queries.expression_factory.ScalarExpressionProxy¶
- Bases: - ExpressionProxy- An - ExpressionProxyspecialized for simple single-value columns.- Attributes Summary - An ordering expression that indicates that the sort on this expression should be reversed. - A boolean expression that tests whether this expression is NULL. - Methods Summary - If this scalar expression is a boolean, convert it to a - Predicateso it can be used as a boolean expression.- in_iterable(others)- Return a boolean expression that tests whether this expression evaluates to a value that is in an iterable of other expressions. - in_query(column, query)- Return a boolean expression that test whether this expression evaluates to a value that is in a single-column selection from another query. - in_range([start, stop, step])- Return a boolean expression that tests whether this expression is within a literal integer range. - Attributes Documentation - desc¶
- An ordering expression that indicates that the sort on this expression should be reversed. 
 - is_null¶
- A boolean expression that tests whether this expression is NULL. 
 - Methods Documentation - as_boolean() Predicate¶
- If this scalar expression is a boolean, convert it to a - Predicateso it can be used as a boolean expression.- Returns:
- predicatePredicate
- This expression converted to a - Predicate.
 
- predicate
- Raises:
- InvalidQueryError
- If this expression is not a boolean. 
 
 
 - in_iterable(others: Iterable) Predicate¶
- Return a boolean expression that tests whether this expression evaluates to a value that is in an iterable of other expressions. - Parameters:
- otherscollections.abc.Iterable
- An iterable of - ExpressionProxyor values to be interpreted as literals.
 
- others
- Returns:
- predicatetree.Predicate
- Boolean expression object. 
 
- predicate
 
 - in_query(column: ExpressionProxy, query: Query) tree.Predicate¶
- Return a boolean expression that test whether this expression evaluates to a value that is in a single-column selection from another query. - Parameters:
- columnExpressionProxy
- Proxy for the column to extract from - query.
- queryQuery
- Query to select from. 
 
- column
- Returns:
- predicatetree.Predicate
- Boolean expression object. 
 
- predicate