Пример #1
0
 <T> OptiqPrepare.PrepareResult<T> parseQuery(
     String sql, OptiqPrepare.Context prepareContext, int maxRowCount) {
   OptiqPrepare.Dummy.push(prepareContext);
   try {
     final OptiqPrepare prepare = prepareFactory.apply();
     return prepare.prepareSql(prepareContext, sql, null, Object[].class, maxRowCount);
   } finally {
     OptiqPrepare.Dummy.pop(prepareContext);
   }
 }
Пример #2
0
 public OptiqPrepare.SparkHandler spark() {
   final boolean enable = config().spark();
   return OptiqPrepare.Dummy.getSparkHandler(enable);
 }