Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Latest commit

 

History

History
76 lines (63 loc) · 1.23 KB

README.md

File metadata and controls

76 lines (63 loc) · 1.23 KB

NDSL-DB

This is simple DB.

For Using

DBFile

DBFile file=new DBFile(new File("%path"));

Init for DBFile. DBFile extension is ".ndb" or ".NDB"

SingleDB

SingleDBBase SingleDB=new SingleDBBase(DBfile);

and Using for getting of index 1

SingleDB.get(1);

and Finelly, You have to Close!

SigleDB.close();

DoubleDB

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

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

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();