Graph object not available to create custom long id in remote server setup

I'm excited about the enhanced custom vertex id feature. When reading https://docs.janusgraph.org/master/advanced-topics/custom-vertex-id/, I found that the "graph" object is needed to invoke "graph.getIDManager().toVertexID(123L)". In a typical remote server deployment, we only depend on "janusgraph/gremlin_driver" and don't have access to the "graph" object. Looking at the "toVertexID()" and "fromVertexID()" functions they don't seem to make DB calls. Was there a reason this could not be extracted into a static library? thanks
2 Replies
porunov
porunov16mo ago
IDManager only needs partition bits amount to be initialized. It doesn't make any DB calls. If just uses the provided partition bits to calculate the id. I.e. it's just a utility class. I believe it can be moved to janusgraph-driver. It will also require moving several other classes there, but I don't see any problem with it.
skyrocks.
skyrocks.OP16mo ago
Thanks for confirming!
Want results from more Discord servers?
Add your server