Created
May 6, 2014 14:14
-
-
Save okram/dbafda5e718b80ab490a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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