--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/61041b1b-3a97-47f8-9390-36901a83b9b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/91cf9405-6157-4422-aeb9-08363168bd60%40googlegroups.com.
final TitanTransaction titanTransaction = graph.newTransaction();Vertex vertexCustomer = titanTransaction.addVertexWithLabel("Customer");
final TransactionalGraph tx = graph.newTransaction();
Vertex vertexCustomer = ((TitanGraphTransaction) tx).addVertexWithLabel("Customer");
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/b68cff3a-0084-42a5-9836-e1319bdc66c4%40googlegroups.com.
Edge livesInCity = graph.addEdge(null, vertexCustomer ,vertexProviderCity,"LIVES_IN_CITY");
graph.commit();
return null;
}
}).build().exponentialBackoff(5, 200);
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/99d9f324-7030-4046-a734-ea1c3c0a4faf%40googlegroups.com.
new TransactionRetryHelper.Builder<Edge>(graph.newTransaction()).perform(new TransactionWork<Edge>() {@Overridepublic Edge execute(final TransactionalGraph graph) throws Exception {final TitanTransaction tx = (TitanTransaction) graph;final Vertex vertexCustomer = tx.addVertexWithLabel("Customer");Vertex vertexProviderCity = checkIfAleardyExistOrNot(tx, cityObject);if (vertexProviderCity == null) {vertexProviderCity = tx.addVertexWithLabel(prop.getProperty("ProvCity"));vertexProviderCity.setProperty("name", cityName);}return tx.addEdge(vertexCustomer ,vertexProviderCity,"LIVES_IN_CITY");}}).build().exponentialBackoff(5, 200);
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/e3d91015-4210-473b-b100-4b9396de830e%40googlegroups.com.