Hey Yash,
Based on your question I would defiantly recommend checking out the Aerospike Java object mapper...
https://developer.aerospike.com/tutorials/java/object_mapper
It will store your java objects natively and also allow you to perform queries against the data as well. If you're interested in setting up a demo we'd be more than happy to walk you through it as well as answer any other question you may have.