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; } }
public void close() throws IOException { if (scanner != null) { scanner.close(); } }