org.axiondb.engine.tables
public abstract class BaseFlatfileTable extends BaseDiskTable implements ExternalTable
| Nested Class Summary | |
|---|---|
| protected abstract class | BaseFlatfileTable.BaseFlatfileTableOrganizationContext |
| Field Summary | |
|---|---|
| protected String | _fileName |
| protected boolean | _isFirstLineHeader |
| protected String | _lineSep |
| protected long | _maxFaults |
| protected int | _rowsToSkip |
| protected TableOrganizationContext | context |
| protected static int | EOF |
| protected static char | FILLER |
| static String | PROP_FILENAME |
| protected static String | PROP_ISFIRSTLINEHEADER |
| protected static String | PROP_MAXFAULTS |
| protected static String | PROP_RECORDDELIMITER |
| protected static String | PROP_ROWSTOSKIP |
| Constructor Summary | |
|---|---|
| BaseFlatfileTable(String name, Database db, TableFactory factory) | |
| Method Summary | |
|---|---|
| void | addColumn(Column col, boolean metaUpdateNeeded) |
| static String | addEscapeSequence(String srcString) |
| protected void | createOrLoadDataFile() |
| protected void | createOrLoadDataFile(boolean createNewDataFile) |
| protected String | evaluateForNull(String colValue, DataType datatype) |
| static String | fixEscapeSequence(String srcString) |
| protected File | getDataFile() |
| protected String | getDefaultDataFileExtension() |
| protected File | getLobDir() |
| protected long | ignoreRowsToSkip() |
| protected void | initializeTable() |
| protected abstract boolean | isEndOfRecord(int recLength, int nextChar, BufferedDataInputStream data) |
| protected boolean | isEOF(int nextChar) |
| protected boolean | isNullString(String str) |
| boolean | loadExternalTable(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 | reloadFilesAfterTruncate() |
| void | remount() |
| protected void | renameTableFiles(String oldName, String name) |
| protected Row | trySettingColumn(int idToAssign, Row row, int i, String colValue) |
| protected abstract void | writeHeader(BufferedDataOutputStream data2) |
Parameters: table Table to be set props Properties for Table
Throws: AxionException thrown while setting Properties