code: private static void reduceItems(FileOutputCollector collector, Reducer reducable, ArrayList<String> items)
              throws IOException {
          if(items != null) {
              // call reducer
              reducable.reduce(items, collector);
          }
      }
docs: Call reducer
  @param writer writer
  @param reducable reducable callback
  @param items items
  @throws IOException IO exception