Hi,
You can use public OrientVertex addVertex(final String className, final
String clusterName)


On Wed, Jan 29, 2014 at 4:14 PM, Andrey Yesyev <[email protected]>wrote:

> Hi!
>
> I spent a day, trying to figure out how to save a Vertex into specified
> cluster... I failed.
>
> I'm using blueprints 2.5-SNAPSHOT with orientdb 1.6.4.
>
> Here is what I'm doing
>
> OrientGraph graph = new OrientGraph("plocal:ePersona_orient");
> ODatabaseDocumentTx db = graph.getRawGraph();
> ...
>
> Vertex v = graph.addVertex("class:MyClass");
> v.setProperty(Fields.NAME, "Name");
> //TODO Add Vertex to cluster
> graph.commit();
>
>
> Very simple piece of code, but I'm completely lost in APIs of blueprints
> and native orientdb.
>
> I found this thread
> https://groups.google.com/forum/#!topicsearchin/orient-database/java$20api$20to$20create$20cluster|sort:date|spell:true/orient-database/CePCeiKRhXk
>  ,
> but it's pretty old one and looks like API changed a lot since that time.
> At least OGraphDatabase is deprecated now.
>
> Also, as I understand from docs I found, tinkerpop API is a standard for
> orientdb now, but there is nothing about clusters there.
> Somebody, please clarify this...
>
> Thanks!
>
> --
>
> ---
> 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.
>



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

Reply via email to