private void finishInternal(IPointable result) throws AlgebricksException {
   try {
     if (!isFinalStage) {
       if (!partialAggAsInput) {
         combinedResult = combiner.finishPartial();
       } else {
         combinedResult = combiner.finishPartial2();
       }
     } else {
       combinedResult = combiner.finishFinal();
     }
     // Writes combined result.
     combinedResult.write(resultStorage.getDataOutput());
     result.set(resultStorage);
   } catch (Exception e) {
     throw new AlgebricksException(e);
   }
 }
Example #2
0
 private static void set(IPointable p, byte[] array) {
   p.set(array, 0, array.length);
 }