/** @see org.mulgara.store.tuples.AbstractTuples#next() */ @Override public boolean next() throws TuplesException { try { currentRow = source.getTriple(); } catch (TuplesException ex) { source.terminate(); throw ex; } assert currentRow != null; if (currentRow == StatementParser.TERMINATOR) rowCount = source.getStatementCount(); return currentRow != StatementParser.TERMINATOR; }
/** @see org.mulgara.store.tuples.AbstractTuples#getRowExpectedCount() */ public long getRowExpectedCount() throws TuplesException { return source.isFinished() ? source.getStatementCount() : Short.MAX_VALUE; }
/** @see org.mulgara.store.tuples.AbstractTuples#getRowUpperBound() */ public long getRowUpperBound() throws TuplesException { // go for the max number of integers, not longs, since this is more reasonable return source.isFinished() ? source.getStatementCount() : Integer.MAX_VALUE; }