Skip to content

Instantly share code, notes, and snippets.

@okram
Created April 3, 2013 17:22
Show Gist options
  • Save okram/5303260 to your computer and use it in GitHub Desktop.
Save okram/5303260 to your computer and use it in GitHub Desktop.
protected FaunusVertex readFaunusVertex(final ByteBuffer key, Iterable<Entry> entries) {
FaunusVertexLoader loader = new FaunusVertexLoader(key);
for (Entry data : entries) {
try {
FaunusVertexLoader.RelationFactory factory = loader.getFactory();
super.edgeSerializer.readRelation(factory,data,tx);
factory.build();
} catch (Exception e) {
//Log exception
}
}
return loader.getVertex();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment