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