This is simple DB.
DBFile file=new DBFile(new File("%path"));
Init for DBFile. DBFile extension is ".ndb" or ".NDB"
SingleDBBase SingleDB=new SingleDBBase(DBfile);
and Using for getting of index 1
SingleDB.get(1);
and Finelly, You have to Close!
SigleDB.close();
DoubleDB has one key,one value
DoubleDB doubleDB=new DoubleDB(DB_Key_File,DB_Value_File);
and using for getting value linked key:"key1"
doubleDB.get("key1");
and Close
doubleDB.close();
MultiValueDB has one key and many values
MultiValueDB multiValueDB=new MultiValueDB(DB_Key_File,DB_Value_File...);
and using for getting values linked key:"key1"
multiValueDB.get("key1");
and Close
multiValueDB.close();
MultiKeyValueDB has many keys and many values
MultiKeyValueDB multiKeyValueDB=new MultiKeyValueDB(Arrays.asList(DB_Key_File...),Arrays.asList(DB_Value_File...));
and using for getting values linked keys:"key1","key2"
multiKeyValueDB.get("key1");
multiKeyValueDB.get("key2");
// It's Same! :)
and Close
multiKeyValueDB.close();