What's the best way to store a really large dictionary in Java and use it the best way during runtime? I would like to implement a complete dictionary and synonyms kind of module.
Update:
Suggest any common design pattern which can be used for this requirement
Just use a database for this kind of stuff. It's meant for that. If you don't want to have a central DB server, then just use one of the embeddable databases. At least you'll follow a standard pattern and still get the benefits of being able to work local.
http://db.apache.org/derby/
http://hsqldb.org/
http://www.h2database.com/html/main.html
One of the simpliest and fastest (to code with) db is sqlite. It should be good enough for your needs. I have successfully used sqlite to store several gigabytes of data without any problems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With