Actually, Iterator<Vertex>.next() is really fast so maybe it's ok not to 
have another API.

It seems that I just called it 7M times (in the debugger) and it completed 
in about 30 seconds.

On Wednesday, August 26, 2015 at 4:04:59 PM UTC+3, MV-dev1 wrote:
>
> I need to process all the Vertexes in a Class of tens of millions.   
> Sometimes there are problems so I need to restart, skipping ahead.
>
> *>> How can I skip ahead with Iterator<Vertex>?*
>
> Some example code:
>
> Iterator<Vertex> iter = graph.getVerticesOfClass("Log").iterator();
>
> // Skip ahead
> for (int nSkip = 0; nSkip < nBigCounter; nSkip++)
>     iter.next();
>
>
>
> *There MUST be a better way* but I couldn't find an api or post which 
> helped me.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to