/**
   * @param auop
   * @return
   */
  private static boolean isReplaceableUnaryAggregate(AggUnaryOp auop) {
    boolean cdir = (auop.getDirection() == Direction.RowCol);
    boolean cop =
        (auop.getOp() == AggOp.SUM
            || auop.getOp() == AggOp.SUM_SQ
            || auop.getOp() == AggOp.MIN
            || auop.getOp() == AggOp.MAX);

    return cdir && cop;
  }