示例#1
0
文件: RexUtil.java 项目: kunlqt/optiq
 protected RexNode register(RexNode expr) {
   final String key = expr.toString();
   final RexNode previous = mapDigestToExpr.put(key, expr);
   if (!allowDups && (previous != null)) {
     throw new SubExprExistsException(expr);
   }
   return expr;
 }
示例#2
0
 protected void registerSchema(MockSchema schema) {
   schemas.put(schema.name, schema);
 }