Method Summary |
|
public synchronized void | add(CachedObject object) |
void | backupFile() Saves the *.data file as compressed *.backup. |
public long | bytesCapacity() |
public int | capacity() |
public void | close(boolean write) Parameter write indicates either an orderly close, or a fast close
without backup. |
public void | defrag() Writes out all the rows to a new file without fragmentation. |
void | deleteBackup() |
void | deleteFile(boolean wasNio) |
static void | deleteOrResetFreePos(Database database, String filename) This method deletes a data file or resets its free position. |
public synchronized CachedObject | get(int i, PersistentStore store, boolean keep) |
public int | getCachedObjectCount() |
public long | getFileFreePos() |
public String | getFileName() |
public int | getFreeBlockCount() |
synchronized RowInputInterface | getRaw(int i) |
public synchronized int | getStorageSize(int i) |
public long | getTotalCachedBlockSize() |
public int | getTotalFreeBlockSize() |
public boolean | hasRowInfo() |
protected void | initBuffers() |
protected void | initParams(Database database, String baseFileName) initial external parameters are set here. |
public boolean | isFileModified() |
public void | open(boolean readonly) Opens the *.data file for this cache, setting the variables that
allow access to the particular database version of the *.data file. |
protected synchronized RowInputInterface | readObject(int pos) |
protected synchronized int | readSize(int pos) |
public synchronized CachedObject | release(int i) |
public synchronized void | remove(int i, PersistentStore store) Used when a row is deleted as a result of some DML or DDL command. |
public synchronized void | removePersistence(int i, PersistentStore store) |
void | renameBackupFile() |
void | renameDataFile() Renames the *.data.new file. |
public synchronized void | restore(CachedObject object) For a CacheObject that had been previously released from the cache. |
public synchronized void | saveRow(CachedObject row) Writes out the specified Row. |
protected synchronized void | saveRows(CachedObject[] rows, int offset, int count) |
protected synchronized void | setFileModified() |