net.sf.farrago.ojrex
Class FarragoOJRexSimilarLikeImplementor
java.lang.Object
net.sf.farrago.ojrex.FarragoOJRexImplementor
net.sf.farrago.ojrex.FarragoOJRexSimilarLikeImplementor
- All Implemented Interfaces:
- OJRexImplementor
public class FarragoOJRexSimilarLikeImplementor
- extends FarragoOJRexImplementor
FarragoOJRexSimilarLikeImplementor implements Farrago specifics of OJRexImplementor for builtin functions
SIMILAR and LIKE.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/ojrex/FarragoOJRexSimilarLikeImplementor.java#12 $
- Author:
- Xiaoyang Luo
|
Field Summary |
private boolean |
similar
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
similar
private final boolean similar
FarragoOJRexSimilarLikeImplementor
public FarragoOJRexSimilarLikeImplementor(boolean similar)
implementFarrago
public Expression implementFarrago(FarragoRexToOJTranslator translator,
RexCall call,
Expression[] operands)
- Description copied from class:
FarragoOJRexImplementor
- Refined version of
OJRexImplementor.implement(org.eigenbase.oj.rex.RexToOJTranslator, org.eigenbase.rex.RexCall, openjava.ptree.Expression[]).
- Specified by:
implementFarrago in class FarragoOJRexImplementor
- Parameters:
translator - provides Farrago-specific translation contextcall - the call to be translatedoperands - call's operands, which have already been translated
independently
canImplement
public boolean canImplement(RexCall call)
- Description copied from interface:
OJRexImplementor
- Tests whether it is possible to implement a call.
- Specified by:
canImplement in interface OJRexImplementor- Overrides:
canImplement in class FarragoOJRexImplementor
- Parameters:
call - the call for which translation is being considered
- Returns:
- whether the call can be implemented