_databaseName = databaseName;
_closed = new AtomicBoolean(false);
final CouchDbConnector tableConnector = _couchDbInstance.createConnector(databaseName, false);
if (maxRows > -1) {
_view = tableConnector.queryForStreamingView(new ViewQuery().allDocs().includeDocs(true).limit(maxRows));
} else {
_view = tableConnector.queryForStreamingView(new ViewQuery().allDocs().includeDocs(true));
}
_rowIterator = _view.iterator();
}