code: @Override
    public Object next(Object previous) throws IOException {
      DoubleWritable result = null;
      if (valuePresent) {
        result = createWritable(previous, readDouble());
      }
      return result;
    }
docs: Give the next double as a Writable object.