Re: Question about deserialize raw janusgraph/Cassandra data
Rafael Fernandes <luizr...@...>
Hi there, Don't think there is better documentation other than this: http://docs.janusgraph.org/latest/serializer.html I did try to create my own version of an Object serializer once but I just reverted my changes and used ByteArraySerializer instead, a lot faster to unmarshall its state. You may wanna have a look at this (org.janusgraph.graphdb.database.serialize.attribute.ObjectSerializer) or any org.janusgraph.graphdb.database.serialize.attribute.* really. Those are the OOB implementations available, as simple as it gets, those are just marshall/unmarshall serializers. Per my experience, those are enough for you and uber, but if you guys really wanna give it a shot, this is where you should start. but give ByteArray a shot, it is super fast. for those who don't know what I'm talking about, just set a vertex.property("stateAsByte", something.makeByteArray()); than you can rebuild your Object by getting it back new Something( (byte[])vertex.property("stateAsByte") ). hope this helps, Rafael Fernandes On Saturday, August 12, 2017 at 1:31:40 PM UTC-4, c...@... wrote:
|
|