Skip to content

Instantly share code, notes, and snippets.

@okram
Created July 28, 2012 21:01
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/3194768 to your computer and use it in GitHub Desktop.
Save okram/3194768 to your computer and use it in GitHub Desktop.
private static FaunusVertex createFaunusVertex(final Pair<ByteBuffer, SortedMap<ByteBuffer, IColumn>> row) {
final FaunusVertex vertex = new FaunusVertex(1l);
try {
for (final java.util.Map.Entry<ByteBuffer, IColumn> entry : row.right.entrySet()) {
vertex.setProperty(ByteBufferUtil.string(entry.getKey()), ByteBufferUtil.string(entry.getValue().value()));
}
} catch (Exception e) {
}
return vertex;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment