コード例 #1
0
  public boolean next(Row.Key key, Writable value) throws IOException {
    RowArray rows = scanner.nextRow();
    if (rows != null) {
      readRowCount++;
      Row.Key rowKey = rows.getRowKey();

      key.set(rowKey.getBytes());

      ((RowArray) value).setRowKey(rowKey);
      ((RowArray) value).setRows(rows.getRows());
      end = false;
      return true;
    } else {
      end = true;
      return false;
    }
  }
コード例 #2
0
 public void close() throws IOException {
   if (scanner != null) {
     scanner.close();
   }
 }