HI,
What exception did you get ?

On Sun, Mar 23, 2014 at 9:22 PM, Shishya <[email protected]> wrote:

> Hi,
>
> I am trying POJO for iterating over an index of class. Purpose is to
> process all docs in classes.
> But I get cast exception from OSBTreeMapEntryIterator. What would be the
> right way to get Document from each K,V of iterator?
> Regards
>
> OrientGraphFactory factory = new OrientGraphFactory(
> "plocal:/dat/odb/orientdb-community-1.7-rc2-SNAPSHOT/databases/"+dbn,
> "admin","admin").setupPool(1, 10);
>         factory.getTx().getRawGraph().declareIntent(new
> OIntentMassiveInsert());
>         OrientGraph graph = factory.getTx();
> OIndex<?> ptidIdx = graph.getRawGraph().getMetadata().getIndexManager().
> getIndex("idxptid");
>
> Iterator<Map.Entry<ORID,ODocument>> iter = ptidIdx.iterator();
>
> while (iter.hasNext()) {
>
> Map.Entry<ORID,ODocument> tm = iter.next();
>                     System.out.println("\n"+tm+"");
> }
>
>  --
>
> ---
> 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.
>



-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
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