Luca, is there a iterator for Javascript function.

I have to process all the documents stored in a class. So I need a handle 
to gotNext() after processing each record.
Please advice.

Thanks


On Wednesday, April 24, 2013 7:41:27 PM UTC+5:30, Lvc@ wrote:
>
> Hi,
> without a test case can you debug what happens inside hasNext() ?
>
> Lvc@
>
>
> On 24 April 2013 09:42, deepa ganu <[email protected] <javascript:>>wrote:
>
>> I have a graph db , named adtran when i try to search a vertex using this 
>> , initially there would be no vertex with propert "peer_slot" , if i get 
>> the hasNext() as false then i want to create a vertex , else use the 
>> existing vertex 
>> private  OrientGraph graph = new OrientGraph("remote:localhost/Adtran", 
>> "admin", "admin");
>>  Iterable<Vertex> it = graph.getVertices("peer_slot", 
>> etos.getSlotNumber());
>>  Iterator<Vertex> iter = it.iterator();
>>  if(iter.hasNext())
>>  {
>>  v = iter.next();
>>  }
>>
>> It stucks at hasNext() and does not come out , i have to suspend the 
>> thread . What do you think might be the reason .
>>  
>> -- 
>>  
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 

--- 
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/groups/opt_out.

Reply via email to