org.eigenbase.oj.rel
Class JavaRelImplementor.TranslationTester
java.lang.Object
org.eigenbase.oj.rel.JavaRelImplementor.TranslationTester
- Enclosing class:
- JavaRelImplementor
public static class JavaRelImplementor.TranslationTester
- extends Object
Similar to RexToOJTranslator
, but instead of translating, merely
tests whether an expression can be translated.
Method Summary |
boolean |
canTranslate(RexNode rex)
Returns whether an expression can be translated. |
protected void |
go(RexNode rex)
Walks over an expression, and throws CannotTranslate
if expression cannot be translated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
translator
private final RexToOJTranslator translator
deep
private final boolean deep
JavaRelImplementor.TranslationTester
public JavaRelImplementor.TranslationTester(RexToOJTranslator translator,
boolean deep)
canTranslate
public boolean canTranslate(RexNode rex)
- Returns whether an expression can be translated.
go
protected void go(RexNode rex)
throws JavaRelImplementor.TranslationTester.CannotTranslate
- Walks over an expression, and throws
CannotTranslate
if expression cannot be translated.
- Parameters:
rex
- Expression
- Throws:
JavaRelImplementor.TranslationTester.CannotTranslate
- if expression or a sub-expression cannot be translated