org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule
public class RemoveRedundantBooleanExpressionsRule extends AbstractRemoveRedundantTypeExpressionsRule
Before plan__parent %OPERATOR( $v1 : boolean( \@input_expression ) ) plan__child Where treat \@input_expression is known to be a boolean value. After plan__parent %OPERATOR( $v1 : \@input_expression ) plan__child
Constructor | Description |
---|---|
RemoveRedundantBooleanExpressionsRule() |
Modifier and Type | Method | Description |
---|---|---|
protected org.apache.hyracks.algebricks.core.algebra.functions.FunctionIdentifier |
getSearchFunction() |
|
boolean |
hasTypeArgument() |
|
boolean |
matchesAllInstancesOf(SequenceType sTypeArg,
SequenceType sTypeOutput) |
rewritePost, rewritePre
public RemoveRedundantBooleanExpressionsRule()
protected org.apache.hyracks.algebricks.core.algebra.functions.FunctionIdentifier getSearchFunction()
getSearchFunction
in class AbstractRemoveRedundantTypeExpressionsRule
public boolean hasTypeArgument()
hasTypeArgument
in class AbstractRemoveRedundantTypeExpressionsRule
public boolean matchesAllInstancesOf(SequenceType sTypeArg, SequenceType sTypeOutput)
matchesAllInstancesOf
in class AbstractRemoveRedundantTypeExpressionsRule
Copyright © 2019 Apache Software Foundation. All rights reserved.