Beispiel #1
0
 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;
 }
Beispiel #2
0
 protected void registerSchema(MockSchema schema) {
   schemas.put(schema.name, schema);
 }