RE: jena and StmtIterator is time consuming operation

2011-03-21 Thread Khandeshi, Ami D
: jena and StmtIterator is time consuming operation Hi all, I noticed that iterating thru stmtiterator (thru hasNext) seems take long time. Can you suggest better/more efficient way to get information in a stattments? Here is a code base where execution query is fast, iterating thru resu

Re: jena and StmtIterator is time consuming operation

2011-03-18 Thread Andy Seaborne
What kind of dataset are you querying? Often, much of th work is done on first call of .hasNext and .execSelect is just setup. You can do: ResultSet results = qexec.execSelect(); qexec.hasNext() ; as hasNext() is (as is correct for iterators) idempotent between calls of .next. Results ar

jena and StmtIterator is time consuming operation

2011-03-18 Thread Khandeshi, Ami D
Hi all, I noticed that iterating thru stmtiterator (thru hasNext) seems take long time. Can you suggest better/more efficient way to get information in a stattments? Here is a code base where execution query is fast, iterating thru result is time consuming. Thanks, Ami