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

Class TextCache



  • public class TextCache
    extends DataFileCache
    Acts as a buffer manager for a single TEXT table and its Row data.

    Handles read/write operations on the table's text format data file using a compatible pair of org.hsqldb.rowio input/output class instances. fredt - This used to write rows as soon as they are inserted but now this is subject to transaction management. A memory buffer contains the rows not yet committed. Refactored for version 2.2.6.

    Since:
    1.7.0
    • Method Detail

      • open

        public void open(boolean readonly)
        Opens a data source file.
        Overrides:
        open in class DataFileCache
      • release

        public void release()
        Description copied from class: DataFileCache
        Abandons changed rows and closes the .data file.
        Overrides:
        release in class DataFileCache
      • close

        public void close()
        Writes newly created rows to disk. In the current implentation, such rows have already been saved, so this method just removes a source file that has no rows.
        Overrides:
        close in class DataFileCache
      • remove

        public void remove(CachedObject object)
        Description copied from class: DataFileCache
        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.
        Overrides:
        remove in class DataFileCache
      • saveRow

        public void saveRow(CachedObject row)
        The row is always in uncommittedCache. Saves the row as normal and removes it
        Overrides:
        saveRow in class DataFileCache
      • getHeader

        public java.lang.String getHeader()
      • setHeaderInitialise

        public void setHeaderInitialise(java.lang.String header)
      • setHeader

        public void setHeader(java.lang.String header)
      • getLineNumber

        public int getLineNumber()
      • isIgnoreFirstLine

        public boolean isIgnoreFirstLine()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.