org.axiondb.engine.tables
Class FixedWidthFlatfileTable
java.lang.Object
org.axiondb.event.BaseTableModificationPublisher
org.axiondb.engine.tables.BaseTable
org.axiondb.engine.tables.BaseDiskTable
org.axiondb.engine.tables.BaseFlatfileTable
org.axiondb.engine.tables.FixedWidthFlatfileTable
- All Implemented Interfaces:
- ExternalTable, RowSource, Table
public final class FixedWidthFlatfileTable
- extends BaseFlatfileTable
A disk-resident Fixed Width Flatfile Table
.
TODO: Add Record Trailer byte size
- Version:
- $Revision: 1.8 $ $Date: 2004/09/09 23:47:44 $
Fields inherited from class org.axiondb.engine.tables.BaseFlatfileTable |
_faultCount, _fileName, _isFirstLineHeader, _lineSep, _maxFaults, _rowsToSkip, context, CR, EOF, FILLER, NL, PROP_FILENAME, PROP_ISFIRSTLINEHEADER, PROP_MAXFAULTS, PROP_RECORDDELIMITER, PROP_ROWSTOSKIP |
Methods inherited from class org.axiondb.engine.tables.BaseFlatfileTable |
addEscapeSequence, applyInserts, applyUpdates, createOrLoadDataFile, fixEscapeSequence, getDataFile, getDefaultDataFileExtension, getLobDir, getRowIterator, isCarriageReturn, isEOF, isNewLine, isNullString, reloadDataFile, remount, trySettingColumn |
Methods inherited from class org.axiondb.engine.tables.BaseDiskTable |
addColumn, addConstraint, appendLongFile, appendLongFile, applyDeletes, applyInserts, applyUpdates, clearDataFileReference, clearMetaFileReference, closeFiles, createOrLoadFreeIdsFile, createOrLoadMetaFile, createOrLoadPidxFile, deleteFile, drop, freeRowId, getCanonicalPath, getMetaFile, getNextRowId, getReadFile, getRootDir, getRow, getRowCount, getTableFile, getWriteFile, initFiles, initializeRowCount, openFile, parseIntFile, parseMetaFile, populateIndex, remount, removeIndex, rename, renameFile, saveIndices, saveIndicesAfterTruncate, setPidx, shutdown, truncate, tryToRemove, updateLongFile, writeFridFile, writeIntFile, writeLongFile, writeMetaFile, writeNameToFile, writePidxFile |
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 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 |
PROP_HEADERBYTESOFFSET
public static final String PROP_HEADERBYTESOFFSET
- See Also:
- Constant Field Values
FixedWidthFlatfileTable
public FixedWidthFlatfileTable(String name,
Database db)
throws AxionException
- Throws:
AxionException
addColumn
public void addColumn(Column col,
boolean metaUpdateNeeded)
throws AxionException
- Overrides:
addColumn
in class BaseFlatfileTable
- Throws:
AxionException
getRowByOffset
protected Row getRowByOffset(int idToAssign,
long ptr)
throws AxionException
- Specified by:
getRowByOffset
in class BaseFlatfileTable
- Throws:
AxionException
nextLineLength
protected int nextLineLength(long fileOffset)
throws AxionException
- Overrides:
nextLineLength
in class BaseFlatfileTable
- Throws:
AxionException
ignoreRowsToSkip
protected long ignoreRowsToSkip()
throws AxionException
- Overrides:
ignoreRowsToSkip
in class BaseFlatfileTable
- Throws:
AxionException
initializeTable
protected void initializeTable()
throws AxionException
- Overrides:
initializeTable
in class BaseFlatfileTable
- Throws:
AxionException
isEndOfRecord
protected boolean isEndOfRecord(int recLength,
int nextChar,
RandomAccessFile data)
- Specified by:
isEndOfRecord
in class BaseFlatfileTable
setTableProperties
public boolean setTableProperties(Properties props)
throws AxionException
- Description copied from class:
BaseFlatfileTable
- Sets the properties for the given text table this is only called once by create
command get executed
- Specified by:
setTableProperties
in interface ExternalTable
- Overrides:
setTableProperties
in class BaseFlatfileTable
- Parameters:
props
- Properties for Table
- Throws:
AxionException
- thrown while setting Properties
getTableProperties
public Properties getTableProperties()
- Description copied from interface:
ExternalTable
- Gets Organization Property.
- Returns:
- Set of organization property key names;
parseTableProperties
protected void parseTableProperties(ObjectInputStream in)
throws AxionException
- Overrides:
parseTableProperties
in class BaseDiskTable
- Throws:
AxionException
renameTableFiles
protected void renameTableFiles(String oldName,
String name)
- Overrides:
renameTableFiles
in class BaseFlatfileTable
writeHeader
protected void writeHeader(RandomAccessFile dataFile)
throws AxionException
- Specified by:
writeHeader
in class BaseFlatfileTable
- Throws:
AxionException
writeRow
protected void writeRow(CharArrayWriter buffer,
Row row)
throws AxionException
- Specified by:
writeRow
in class BaseFlatfileTable
- Throws:
AxionException
writeTableProperties
protected void writeTableProperties(ObjectOutputStream out)
throws AxionException
- Overrides:
writeTableProperties
in class BaseDiskTable
- Throws:
AxionException