Ejemplo n.º 1
0
 private TQueryOptions defaultQueryOptions() {
   TQueryOptions options = new TQueryOptions();
   options.setExplain_level(TExplainLevel.STANDARD);
   options.setAllow_unsupported_formats(true);
   options.setExec_single_node_rows_threshold(0);
   return options;
 }
Ejemplo n.º 2
0
 /** Merge the options of b into a and return a */
 private TQueryOptions mergeQueryOptions(TQueryOptions a, TQueryOptions b) {
   for (TQueryOptions._Fields f : TQueryOptions._Fields.values()) {
     if (b.isSet(f)) {
       a.setFieldValue(f, b.getFieldValue(f));
     }
   }
   return a;
 }