public final class FixedWidthFlatfileTable extends BaseFlatfileTable
Table
.BaseFlatfileTable.BaseFlatfileTableOrganizationContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_HEADERBYTESOFFSET |
_fileName, _isFirstLineHeader, _lineSep, _maxFaults, _rowsToSkip, context, EOF, FILLER, PROP_FILENAME, PROP_ISFIRSTLINEHEADER, PROP_MAXFAULTS, PROP_RECORDDELIMITER, PROP_ROWSTOSKIP
_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
COLUMNS_ARE_CASE_SENSITIVE, DELIMITED_TABLE_TYPE, EXTERNAL_DB_TABLE_TYPE, FW_TABLE_TYPE, PROP_CATALOG, PROP_CREATE_IF_NOT_EXIST, PROP_DB, PROP_LOADTYPE, PROP_ORDERBY, PROP_REMOTETABLE, PROP_SCHEMA, PROP_VENDOR, PROP_WHERE, TAGGED_EBCDIC_TABLE_TYPE
REGULAR_TABLE_TYPE, SYSTEM_TABLE_TYPE
Constructor and Description |
---|
FixedWidthFlatfileTable(java.lang.String name,
Database db) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column col,
boolean metaUpdateNeeded) |
protected Row |
getRowByOffset(int idToAssign,
long ptr) |
java.util.Properties |
getTableProperties()
Gets Organization Property.
|
protected long |
ignoreRowsToSkip() |
protected void |
initializeTable() |
protected boolean |
isEndOfRecord(int recLength,
int nextChar,
BufferedDataInputStream data) |
boolean |
loadExternalTable(java.util.Properties props)
Loads external data using the given properties table - should be called only once
by the table factory.
|
protected int |
nextLineLength(long fileOffset) |
protected void |
parseTableProperties(java.io.ObjectInputStream in) |
protected void |
renameTableFiles(java.lang.String oldName,
java.lang.String name) |
protected void |
writeHeader(BufferedDataOutputStream dataFile) |
protected void |
writeRow(BufferedDataOutputStream out,
Row row) |
protected void |
writeTableProperties(java.io.ObjectOutputStream out) |
addEscapeSequence, createOrLoadDataFile, createOrLoadDataFile, evaluateForNull, fixEscapeSequence, getDataFile, getDefaultDataFileExtension, getLobDir, isEOF, isNullString, reloadFilesAfterTruncate, remount, trySettingColumn
addColumn, addConstraint, applyDeletes, applyInserts, applyUpdates, checkpoint, clearDataFileReference, closeFiles, createOrLoadFreeIdsFile, drop, freeRowId, getInputStream, getNextRowId, getOutputStream, getPidxList, getRootDir, getRow, getRowCount, getRowIterator, getTableFile, initFiles, initializeRowCount, isReadOnly, loadOrMigrateMetaFile, migrate, parsePidxFile, populateIndex, remount, removeIndex, rename, resetLobColumns, saveIndicesAfterTruncate, setSequence, shutdown, truncate, tryToRemove, writeFridFile, writeMetaFile, writeNameToFile
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
checkConstraints, checkConstraints, checkConstraints, getMatchingRows, hasDeferredConstraint, isDeferAll, migrate
addTableModificationListener, getTableModificationListeners, publishEvent, removeTableModificationListener, setDeferAllConstraints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public static final java.lang.String PROP_HEADERBYTESOFFSET
public FixedWidthFlatfileTable(java.lang.String name, Database db) throws AxionException
AxionException
public void addColumn(Column col, boolean metaUpdateNeeded) throws AxionException
addColumn
in class BaseFlatfileTable
AxionException
protected Row getRowByOffset(int idToAssign, long ptr) throws AxionException
getRowByOffset
in class BaseDiskTable
AxionException
protected int nextLineLength(long fileOffset) throws AxionException
nextLineLength
in class BaseFlatfileTable
AxionException
protected long ignoreRowsToSkip() throws AxionException
ignoreRowsToSkip
in class BaseFlatfileTable
AxionException
protected void initializeTable() throws AxionException
initializeTable
in class BaseFlatfileTable
AxionException
protected boolean isEndOfRecord(int recLength, int nextChar, BufferedDataInputStream data) throws java.io.IOException
isEndOfRecord
in class BaseFlatfileTable
java.io.IOException
public boolean loadExternalTable(java.util.Properties props) throws AxionException
BaseFlatfileTable
loadExternalTable
in interface ExternalTable
loadExternalTable
in class BaseFlatfileTable
props
- Properties for TableAxionException
- thrown while setting Propertiespublic java.util.Properties getTableProperties()
ExternalTable
protected void parseTableProperties(java.io.ObjectInputStream in) throws AxionException
parseTableProperties
in class BaseDiskTable
AxionException
protected void renameTableFiles(java.lang.String oldName, java.lang.String name)
renameTableFiles
in class BaseFlatfileTable
protected void writeHeader(BufferedDataOutputStream dataFile) throws AxionException
writeHeader
in class BaseFlatfileTable
AxionException
protected void writeRow(BufferedDataOutputStream out, Row row) throws AxionException
writeRow
in class BaseDiskTable
AxionException
protected void writeTableProperties(java.io.ObjectOutputStream out) throws AxionException
writeTableProperties
in class BaseDiskTable
AxionException