public class TaggedEBCDICTable extends BaseFlatfileTable
Table.
Example: create external table test1( col1 datatype, col2 datatype, ...) organization(loadtype='taggedebcdic' RecordLength='213', HeaderBytesOffset='24', tagLength='4', minTagCount='1', maxTagCount='48', tagByteCount='0', recordTrailerByteCount='54' FileName='C:/hawaii/test/input_data.txt', TagByteCount='2', en='cp037')
BaseFlatfileTable.BaseFlatfileTableOrganizationContext| Modifier and Type | Field and Description |
|---|---|
protected int |
_count |
protected int |
_index |
protected long |
_pos |
static java.lang.String |
PROP_ENCODING |
static java.lang.String |
PROP_HEADERBYTESOFFSET |
static java.lang.String |
PROP_MAXTAGCOUNT |
static java.lang.String |
PROP_MINTAGCOUNT |
static java.lang.String |
PROP_RECORDLENGTH |
static java.lang.String |
PROP_RECORDTRAILERBYTECOUNT |
static java.lang.String |
PROP_TAGBYTECOUNT |
static java.lang.String |
PROP_TAGLENGTH |
_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_EXTCOLUMNS_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_TYPEREGULAR_TABLE_TYPE, SYSTEM_TABLE_TYPE| Constructor and Description |
|---|
TaggedEBCDICTable(java.lang.String name,
Database db) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCurrentParsePosition() |
protected Row |
getRowByOffset(int idToAssign,
long ptr) |
java.util.Properties |
getTableProperties()
Gets Organization Property.
|
protected long |
ignoreRowsToSkip() |
protected void |
initializeTable() |
protected boolean |
isCarriageReturn(int nextChar) |
protected boolean |
isEndOfRecord(int recLength,
int nextChar,
BufferedDataInputStream data) |
protected boolean |
isNewLine(int nextChar) |
boolean |
loadExternalTable(java.util.Properties props)
Loads external data using the given properties table - should be called only once
by the table factory.
|
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) |
addColumn, addEscapeSequence, createOrLoadDataFile, createOrLoadDataFile, evaluateForNull, fixEscapeSequence, getDataFile, getDefaultDataFileExtension, getLobDir, isEOF, isNullString, nextLineLength, reloadFilesAfterTruncate, remount, trySettingColumnaddColumn, 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, writeNameToFileaddIndex, 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, writeConstraintscheckConstraints, checkConstraints, checkConstraints, getMatchingRows, hasDeferredConstraint, isDeferAll, migrateaddTableModificationListener, getTableModificationListeners, publishEvent, removeTableModificationListener, setDeferAllConstraintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddColumn, 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, updateRowpublic static final java.lang.String PROP_HEADERBYTESOFFSET
public static final java.lang.String PROP_RECORDLENGTH
public static final java.lang.String PROP_TAGLENGTH
public static final java.lang.String PROP_MINTAGCOUNT
public static final java.lang.String PROP_MAXTAGCOUNT
public static final java.lang.String PROP_RECORDTRAILERBYTECOUNT
public static final java.lang.String PROP_TAGBYTECOUNT
public static final java.lang.String PROP_ENCODING
protected long _pos
protected int _index
protected int _count
public TaggedEBCDICTable(java.lang.String name,
Database db)
throws AxionException
AxionExceptionprotected Row getRowByOffset(int idToAssign, long ptr) throws AxionException
getRowByOffset in class BaseDiskTableAxionExceptionprotected long ignoreRowsToSkip()
throws AxionException
ignoreRowsToSkip in class BaseFlatfileTableAxionExceptionprotected void initializeTable()
throws AxionException
initializeTable in class BaseFlatfileTableAxionExceptionpublic long getCurrentParsePosition()
public boolean loadExternalTable(java.util.Properties props)
throws AxionException
BaseFlatfileTableloadExternalTable in interface ExternalTableloadExternalTable in class BaseFlatfileTableprops - Properties for TableAxionException - thrown while setting Propertiespublic java.util.Properties getTableProperties()
ExternalTableprotected void parseTableProperties(java.io.ObjectInputStream in)
throws AxionException
parseTableProperties in class BaseDiskTableAxionExceptionprotected void renameTableFiles(java.lang.String oldName,
java.lang.String name)
renameTableFiles in class BaseFlatfileTableprotected void writeTableProperties(java.io.ObjectOutputStream out)
throws AxionException
writeTableProperties in class BaseDiskTableAxionExceptionprotected void writeHeader(BufferedDataOutputStream dataFile) throws AxionException
writeHeader in class BaseFlatfileTableAxionExceptionprotected void writeRow(BufferedDataOutputStream out, Row row) throws AxionException
writeRow in class BaseDiskTableAxionExceptionprotected boolean isEndOfRecord(int recLength,
int nextChar,
BufferedDataInputStream data)
isEndOfRecord in class BaseFlatfileTableprotected boolean isCarriageReturn(int nextChar)
protected boolean isNewLine(int nextChar)