public class RecordsFile extends BaseRecordsFile
| Constructor and Description |
|---|
RecordsFile(String dbPath,
int initialSize)
Creates a new database file.
|
RecordsFile(String dbPath,
String accessFlags)
Opens an existing database and initializes the in-memory index.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the database.
|
Enumeration |
enumerateKeys()
Returns an enumeration of all the keys in the database.
|
int |
getNumRecords()
Returns the current number of records in the database.
|
boolean |
recordExists(String key)
Checks if there is a record belonging to the given key.
|
deleteRecord, insertRecord, readRecord, updateRecordpublic RecordsFile(String dbPath, int initialSize) throws IOException, RecordsFileException
IOExceptionRecordsFileExceptionpublic RecordsFile(String dbPath, String accessFlags) throws IOException, RecordsFileException
IOExceptionRecordsFileExceptionpublic Enumeration enumerateKeys()
enumerateKeys in class BaseRecordsFilepublic int getNumRecords()
getNumRecords in class BaseRecordsFilepublic boolean recordExists(String key)
recordExists in class BaseRecordsFilepublic void close()
throws IOException,
RecordsFileException
close in class BaseRecordsFileIOExceptionRecordsFileExceptionDMelt 2.0 © DataMelt by jWork.ORG