org.axiondb.engine.tables
Class DiskTable

java.lang.Object
  extended byorg.axiondb.event.BaseTableModificationPublisher
      extended byorg.axiondb.engine.tables.BaseTable
          extended byorg.axiondb.engine.tables.BaseDiskTable
              extended byorg.axiondb.engine.tables.DiskTable
All Implemented Interfaces:
RowSource, Table

public final class DiskTable
extends BaseDiskTable
implements Table

A disk-resident Table.

Version:
$Revision: 1.8 $ $Date: 2004/09/09 23:47:44 $

Field Summary
 
Fields inherited from class org.axiondb.engine.tables.BaseDiskTable
_dataFile, _dbdir, _freeIds, _freeIdsFileName, _modCount, _pidx, _pidxFileName, _rowCount, INVALID_OFFSET
 
Fields inherited from interface org.axiondb.Table
REGULAR_TABLE_TYPE, SYSTEM_TABLE_TYPE
 
Constructor Summary
DiskTable(String name, Database db)
           
 
Method Summary
protected  void applyInserts(Iterator rows)
           
protected  void applyUpdates(Iterator rows)
           
protected  File getDataFile()
           
protected  File getLobDir()
           
protected  Row getRowByOffset(int idToAssign, long ptr)
           
protected  RowIterator getRowIterator()
           
 void glomLobs()
           
protected  void initFiles(File basedir, boolean datafilesonly)
           
protected  void reloadDataFile()
           
protected  void renameTableFiles(String oldName, String name)
           
 
Methods inherited from class org.axiondb.engine.tables.BaseDiskTable
addColumn, addColumn, addConstraint, appendLongFile, appendLongFile, applyDeletes, applyInserts, applyUpdates, clearDataFileReference, clearMetaFileReference, closeFiles, createOrLoadDataFile, createOrLoadFreeIdsFile, createOrLoadMetaFile, createOrLoadPidxFile, deleteFile, drop, freeRowId, getCanonicalPath, getDefaultDataFileExtension, getMetaFile, getNextRowId, getReadFile, getRootDir, getRow, getRowCount, getTableFile, getWriteFile, initializeRowCount, openFile, parseIntFile, parseMetaFile, parseTableProperties, populateIndex, remount, removeIndex, rename, renameFile, saveIndices, saveIndicesAfterTruncate, setPidx, shutdown, truncate, tryToRemove, updateLongFile, writeFridFile, writeIntFile, writeLongFile, writeMetaFile, writeNameToFile, writePidxFile, writeTableProperties
 
Methods inherited from class org.axiondb.engine.tables.BaseTable
addIndex, addRow, applyDeletesToIndices, applyInsertsToIndices, applyUpdatesToIndices, checkConstraints, checkConstraints, deleteRow, getColumn, getColumn, getColumnCount, getColumnIdentifiers, getColumnIndex, getConstraints, getIndexedRows, getIndexForColumn, getIndices, getMatchingRows, getName, getRowIterator, getType, hasColumn, hasDeferredConstraint, hasIndex, isColumnIndexed, isPrimaryKeyConstraintExists, isUniqueConstraintExists, makeRowDecorator, makeTransactableTable, notifyColumnsOfNewLobDir, readColumns, readConstraints, removeConstraint, setName, setType, toString, truncateIndices, updateRow, writeColumns, writeConstraints
 
Methods inherited from class org.axiondb.event.BaseTableModificationPublisher
addTableModificationListener, getTableModificationListeners, publishEvent, removeTableModificationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.axiondb.Table
addColumn, addConstraint, addIndex, addRow, addTableModificationListener, applyDeletes, applyInserts, applyUpdates, drop, freeRowId, getColumn, getColumn, getColumnCount, getColumnIdentifiers, getColumnIndex, getConstraints, getIndexedRows, getIndexForColumn, getIndices, getMatchingRows, getName, getNextRowId, getRowCount, getRowIterator, getType, hasColumn, hasIndex, isColumnIndexed, isPrimaryKeyConstraintExists, isUniqueConstraintExists, makeRowDecorator, makeTransactableTable, populateIndex, remount, removeConstraint, removeIndex, removeTableModificationListener, rename, shutdown, truncate, updateRow
 
Methods inherited from interface org.axiondb.RowSource
getRow
 

Constructor Detail

DiskTable

public DiskTable(String name,
                 Database db)
          throws AxionException
Method Detail

glomLobs

public void glomLobs()
              throws Exception
Throws:
Exception

applyInserts

protected void applyInserts(Iterator rows)
                     throws AxionException
Specified by:
applyInserts in class BaseDiskTable
Throws:
AxionException

applyUpdates

protected void applyUpdates(Iterator rows)
                     throws AxionException
Specified by:
applyUpdates in class BaseDiskTable
Throws:
AxionException

getDataFile

protected File getDataFile()
Specified by:
getDataFile in class BaseDiskTable

renameTableFiles

protected void renameTableFiles(String oldName,
                                String name)
Overrides:
renameTableFiles in class BaseDiskTable

getLobDir

protected File getLobDir()
Specified by:
getLobDir in class BaseDiskTable

getRowByOffset

protected Row getRowByOffset(int idToAssign,
                             long ptr)
                      throws AxionException
Specified by:
getRowByOffset in class BaseDiskTable
Throws:
AxionException

getRowIterator

protected RowIterator getRowIterator()
                              throws AxionException
Specified by:
getRowIterator in class BaseTable
Throws:
AxionException

initFiles

protected void initFiles(File basedir,
                         boolean datafilesonly)
                  throws AxionException
Overrides:
initFiles in class BaseDiskTable
Throws:
AxionException

reloadDataFile

protected void reloadDataFile()
                       throws AxionException
Specified by:
reloadDataFile in class BaseDiskTable
Throws:
AxionException