示例#1
0
  /** @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;
  }
示例#2
0
 /** @see org.mulgara.store.tuples.AbstractTuples#getRowExpectedCount() */
 public long getRowExpectedCount() throws TuplesException {
   return source.isFinished() ? source.getStatementCount() : Short.MAX_VALUE;
 }
示例#3
0
 /** @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;
 }