Documentation of 'org.hsqldb.persist.DataFileCache' Java class
DataFileCache
org.hsqldb.persist

Class DataFileCache

  • Direct Known Subclasses:
    DataFileCacheSession, TextCache


    public class DataFileCache
    extends java.lang.Object
    Acts as a manager for CACHED table persistence.

    This contains the top level functionality. Provides file management services and access.

    Rewritten for 1.8.0 and 2.x

    Since:
    1.7.2
    • Constructor Detail

      • DataFileCache

        public DataFileCache(Database db,
                             java.lang.String baseFileName)
      • DataFileCache

        public DataFileCache(Database db,
                             java.lang.String baseFileName,
                             boolean defrag)
    • Method Detail

      • open

        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.
      • release

        public void release()
        Abandons changed rows and closes the .data file.
      • close

        public void close()
        Writes out all cached rows that have been modified and the free position pointer for the *.data file and then closes the file.
      • adjustStoreCount

        public void adjustStoreCount(int adjust)
      • reopen

        public void reopen()
      • reset

        public void reset()
        Commits all the changes to the file
      • remove

        public void remove(CachedObject object)
        Used when a row is deleted as a result of some DML or DDL statement. Removes the row from the cache data structures. Adds the file space for the row to the list of free positions.
      • removePersistence

        public void removePersistence(CachedObject object)
      • getStorageSize

        public int getStorageSize(long i)
      • releaseRange

        public void releaseRange(long start,
                                 long limit)
      • saveRow

        public void saveRow(CachedObject row)
        Writes out the specified Row. Will write only the Nodes or both Nodes and table row data depending on what is not already persisted to disk.
      • saveRowOutput

        public void saveRowOutput(long pos)
      • enlargeFileSpace

        public long enlargeFileSpace(long delta)
        Delta must always result in block multiples
      • capacity

        public int capacity()
      • bytesCapacity

        public long bytesCapacity()
      • getTotalCachedBlockSize

        public long getTotalCachedBlockSize()
      • getLostBlockSize

        public long getLostBlockSize()
      • getFileFreePos

        public long getFileFreePos()
      • getCachedObjectCount

        public int getCachedObjectCount()
      • getAccessCount

        public int getAccessCount()
      • getFileName

        public java.lang.String getFileName()
      • getDataFileScale

        public int getDataFileScale()
      • hasRowInfo

        public boolean hasRowInfo()
      • isFileModified

        public boolean isFileModified()
      • isModified

        public boolean isModified()
      • isFileOpen

        public boolean isFileOpen()
      • getFlags

        public int getFlags()
      • isDataReadOnly

        public boolean isDataReadOnly()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.