/** * This is a really slow implementation, please override. */ public long size() throws ModelRuntimeException { assertModel(); ClosableIterator<Statement> it = iterator(); int count = 0; while (it.hasNext()) { count++; it.next(); } it.close(); return count; }
/** * This is a really slow implementation, please override. */ @Override public long size() throws ModelRuntimeException { assertModel(); ClosableIterator<Statement> it = iterator(); int count = 0; while(it.hasNext()) { count++; it.next(); } it.close(); return count; }