coral-beam/src/main/java/com/linkedin/beam/utils/RexBeamUtils.java
static ExpressionType sqlKindToExprType(SqlKind sqlKind) {
    switch (sqlKind) {
      case AND:
        return ExpressionType.AndAlso;
      case OR:
        return ExpressionType.OrElse;
      case PLUS:
        return ExpressionType.Add;
      case MINUS:
        return ExpressionType.Subtract;
      case DIVIDE:
        return ExpressionType.Divide;
      case TIMES:
        return ExpressionType.Multiply;
      default:
        throw new UnsupportedOperationException("Expression type: " + sqlKind + " not supported");
    }
  }
/**
   * Maps from sqlKind operator to Java expression type.
   *
   * @param sqlKind sqlKind operator
   * @return Java expression type
   */
Maps from sqlKind operator to Java expression type.
@param sqlKind sqlKind operator
@return Java expression type
Maps from sqlKind operator to Java expression type . @param sqlKind sqlKind operator @return Java expression type
static ExpressionType sqlKindToExprType(SqlKind sqlKind) {
    switch (sqlKind) {
      case AND:
        return ExpressionType.AndAlso;
      case OR:
        return ExpressionType.OrElse;
      case PLUS:
        return ExpressionType.Add;
      case MINUS:
        return ExpressionType.Subtract;
      case DIVIDE:
        return ExpressionType.Divide;
      case TIMES:
        return ExpressionType.Multiply;
      default:
        throw new UnsupportedOperationException("Expression type: " + sqlKind + " not supported");
    }
  }
static ExpressionType sqlKindToExprType ( SqlKind sqlKind ) { switch ( sqlKind ) { case AND : return ExpressionType . AndAlso ; case OR : return ExpressionType . OrElse ; case PLUS : return ExpressionType . Add ; case MINUS : return ExpressionType . Subtract ; case DIVIDE : return ExpressionType . Divide ; case TIMES : return ExpressionType . Multiply ; default : throw new UnsupportedOperationException ( "Expression type: " + sqlKind + " not supported" ) ; } }
Maps from sqlKind operator to Java expression type.
Maps from sqlKind operator to Java expression type .