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, updateRecord
public RecordsFile(String dbPath, int initialSize) throws IOException, RecordsFileException
IOException
RecordsFileException
public RecordsFile(String dbPath, String accessFlags) throws IOException, RecordsFileException
IOException
RecordsFileException
public Enumeration enumerateKeys()
enumerateKeys
in class BaseRecordsFile
public int getNumRecords()
getNumRecords
in class BaseRecordsFile
public boolean recordExists(String key)
recordExists
in class BaseRecordsFile
public void close() throws IOException, RecordsFileException
close
in class BaseRecordsFile
IOException
RecordsFileException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics