Skip to content

Instantly share code, notes, and snippets.

@okram
Created May 6, 2014 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okram/dbafda5e718b80ab490a to your computer and use it in GitHub Desktop.
Save okram/dbafda5e718b80ab490a to your computer and use it in GitHub Desktop.
this.gremlinVertex = reader.readVertex(bis, (id1, label1, properties1) -> {
final com.tinkerpop.gremlin.structure.Vertex vertex = this.graph.addVertex(Element.ID, id1, Element.LABEL, label1);
for (int i = 0; i < properties1.length; i = i + 2) {
vertex.setProperty((String) properties1[i], properties1[i + 1]);
}
return vertex;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment