Is there any function to import and export all collections of mongodb database using java driver.? like there is mongodump and mongorestore using c
mongodump
mongorestore
mongodump --host localhost --port 27017 --db sample
It exacts with folder as dump with database name sample
mongorestore --db sample --verbose d:/dump/sample/