jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khandeshi, Ami D" <>
Subject jena and StmtIterator is time consuming operation
Date Fri, 18 Mar 2011 19:19:37 GMT
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.





                        ResultSet results = qexec.execSelect();

                        System.out.println("got result");

                  List<Entity> entities = new ArrayList();

                  long time=System.currentTimeMillis();

                  System.out.println("Start Iteator");

                        for ( ; results.hasNext() ; )  {



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message