net.sf.saffron.rex
Class RexUtil

java.lang.Object
  |
  +--net.sf.saffron.rex.RexUtil

public class RexUtil
extends Object

Utility methods concerning row-expressions.

Since:
Nov 23, 2003
Version:
$Id: $
Author:
jhyde

Field Summary
static RexNode[] emptyExpressionArray
           
 
Constructor Summary
RexUtil()
           
 
Method Summary
static RexNode clone(RexNode exp)
          Returns a copy of a row-expression.
static RexNode[] clone(RexNode[] exps)
          Returns a copy of an array of row-expressions.
static RexNode[] generateCastExpressions(RexBuilder rexBuilder, SaffronType lhsRowType, RexNode[] rhsExps)
           
static double getSelectivity(RexNode exp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emptyExpressionArray

public static final RexNode[] emptyExpressionArray
Constructor Detail

RexUtil

public RexUtil()
Method Detail

getSelectivity

public static double getSelectivity(RexNode exp)

clone

public static RexNode clone(RexNode exp)
Returns a copy of a row-expression.


clone

public static RexNode[] clone(RexNode[] exps)
Returns a copy of an array of row-expressions.


generateCastExpressions

public static RexNode[] generateCastExpressions(RexBuilder rexBuilder,
                                                SaffronType lhsRowType,
                                                RexNode[] rhsExps)

SourceForge.net_Logo