org.axiondb.engine.tables
Class DiskTable

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

public final class DiskTable
extends BaseDiskTable
implements Table

A disk-resident Table.

Version:
$Revision: 1.19 $ $Date: 2005/12/20 18:32:28 $

Field Summary
 
Fields inherited from class org.axiondb.engine.tables.BaseDiskTable
_dataFile, _dbdir, _freeIds, _readOnly, _rowCount, CURRENT_META_VERSION, FRID_FILE_EXT, FS, INDICES_DIR_NAME, INVALID_OFFSET, META_FILE_EXT, PIDX_FILE_EXT, SEQ_FILE_EXT, TYPE_FILE_EXT
 
Fields inherited from interface org.axiondb.Table
REGULAR_TABLE_TYPE, SYSTEM_TABLE_TYPE
 
Constructor Summary
DiskTable(String name, Database db)
           
 
Method Summary
protected  File getDataFile()
           
 GlomLobsHelper getGlomLobsHelper()
           
protected  File getLobDir()
           
protected  Row getRowByOffset(int idToAssign, long ptr)
           
 void glomLobs()
          Deprecated. use GlomLobsHelper instead
protected  void initFiles(File basedir, boolean datafilesonly)
           
protected  void reloadFilesAfterTruncate()
           
protected  void renameTableFiles(String oldName, String name)
           
protected  void writeRow(BufferedDataOutputStream out, Row row)
           
 
Methods inherited from class org.axiondb.engine.tables.BaseDiskTable
addColumn, addColumn, addConstraint, applyDeletes, applyInserts, applyUpdates, checkpoint, clearDataFileReference, closeFiles, createOrLoadDataFile, createOrLoadFreeIdsFile, drop, freeRowId, getDefaultDataFileExtension, getInputStream, getNextRowId, getOutputStream, getPidxList, getRootDir, getRow, getRowCount, getRowIterator, getTableFile, initializeRowCount, isReadOnly, loadOrMigrateMetaFile, migrate, parsePidxFile, parseTableProperties, populateIndex, remount, removeIndex, rename, resetLobColumns, saveIndicesAfterTruncate, setSequence, shutdown, truncate, tryToRemove, writeFridFile, writeMetaFile, writeNameToFile, writeTableProperties
 
Methods inherited from class org.axiondb.engine.tables.BaseTable
addIndex, addRow, applyDeletesToIndices, applyInsertsToIndices, applyUpdatesToIndices, clearCache, deleteRow, getColumn, getColumn, getColumnCount, getColumnIdentifiers, getColumnIndex, getConstraint, getConstraints, getIndexedRows, getIndexedRows, getIndexForColumn, getIndices, getName, getRowIterator, getSequence, getType, hasColumn, hasIndex, isColumnIndexed, isPrimaryKeyConstraintExists, isUniqueConstraintExists, makeRowDecorator, makeTransactableTable, notifyColumnsOfNewLobDir, readColumns, readConstraints, recreateIndices, removeConstraint, setName, setType, toString, truncateIndices, updateRow, writeColumns, writeConstraints
 
Methods inherited from class org.axiondb.engine.tables.AbstractBaseTable
checkConstraints, checkConstraints, checkConstraints, getMatchingRows, hasDeferredConstraint, isDeferAll, migrate
 
Methods inherited from class org.axiondb.event.BaseTableModificationPublisher
addTableModificationListener, getTableModificationListeners, publishEvent, removeTableModificationListener, setDeferAllConstraints
 
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, checkpoint, deleteRow, drop, freeRowId, getColumn, getColumn, getColumnCount, getColumnIdentifiers, getColumnIndex, getConstraint, getConstraints, getIndexedRows, getIndexedRows, getIndexForColumn, getIndices, getMatchingRows, getName, getNextRowId, getRowCount, getRowIterator, getSequence, getTableModificationListeners, getType, hasColumn, hasIndex, isColumnIndexed, isPrimaryKeyConstraintExists, isUniqueConstraintExists, makeRowDecorator, makeTransactableTable, migrate, populateIndex, remount, removeConstraint, removeIndex, removeTableModificationListener, rename, setDeferAllConstraints, setSequence, shutdown, truncate, updateRow
 
Methods inherited from interface org.axiondb.RowSource
getRow
 

Constructor Detail

DiskTable

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

getGlomLobsHelper

public GlomLobsHelper getGlomLobsHelper()

glomLobs

public void glomLobs()
              throws Exception
Deprecated. use GlomLobsHelper instead

Throws:
Exception

getDataFile

protected File getDataFile()
Specified by:
getDataFile 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

initFiles

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

reloadFilesAfterTruncate

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

renameTableFiles

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

writeRow

protected void writeRow(BufferedDataOutputStream out,
                        Row row)
                 throws AxionException
Specified by:
writeRow in class BaseDiskTable
Throws:
AxionException