org.axiondb.engine.tables

Class TaggedEBCDICTable

public class TaggedEBCDICTable extends BaseFlatfileTable

A disk-resident Fixed Width Flatfile 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')

Version: $Revision: 1.14 $ $Date: 2005/12/20 18:32:27 $

Author: Sudhi Seshachala Jonathan Giron Ahimanikya Satapathy

Field Summary
protected int_count
protected int_index
protected long_pos
static StringPROP_ENCODING
static StringPROP_HEADERBYTESOFFSET
static StringPROP_MAXTAGCOUNT
static StringPROP_MINTAGCOUNT
static StringPROP_RECORDLENGTH
static StringPROP_RECORDTRAILERBYTECOUNT
static StringPROP_TAGBYTECOUNT
static StringPROP_TAGLENGTH
Constructor Summary
TaggedEBCDICTable(String name, Database db)
Method Summary
longgetCurrentParsePosition()
protected RowgetRowByOffset(int idToAssign, long ptr)
PropertiesgetTableProperties()
protected longignoreRowsToSkip()
protected voidinitializeTable()
protected booleanisCarriageReturn(int nextChar)
protected booleanisEndOfRecord(int recLength, int nextChar, BufferedDataInputStream data)
protected booleanisNewLine(int nextChar)
booleanloadExternalTable(Properties props)
protected voidparseTableProperties(ObjectInputStream in)
protected voidrenameTableFiles(String oldName, String name)
protected voidwriteHeader(BufferedDataOutputStream dataFile)
protected voidwriteRow(BufferedDataOutputStream out, Row row)
protected voidwriteTableProperties(ObjectOutputStream out)

Field Detail

_count

protected int _count

_index

protected int _index

_pos

protected long _pos

PROP_ENCODING

public static final String PROP_ENCODING

PROP_HEADERBYTESOFFSET

public static final String PROP_HEADERBYTESOFFSET

PROP_MAXTAGCOUNT

public static final String PROP_MAXTAGCOUNT

PROP_MINTAGCOUNT

public static final String PROP_MINTAGCOUNT

PROP_RECORDLENGTH

public static final String PROP_RECORDLENGTH

PROP_RECORDTRAILERBYTECOUNT

public static final String PROP_RECORDTRAILERBYTECOUNT

PROP_TAGBYTECOUNT

public static final String PROP_TAGBYTECOUNT

PROP_TAGLENGTH

public static final String PROP_TAGLENGTH

Constructor Detail

TaggedEBCDICTable

public TaggedEBCDICTable(String name, Database db)

Method Detail

getCurrentParsePosition

public long getCurrentParsePosition()

getRowByOffset

protected Row getRowByOffset(int idToAssign, long ptr)

getTableProperties

public Properties getTableProperties()

ignoreRowsToSkip

protected long ignoreRowsToSkip()

initializeTable

protected void initializeTable()

isCarriageReturn

protected boolean isCarriageReturn(int nextChar)

isEndOfRecord

protected boolean isEndOfRecord(int recLength, int nextChar, BufferedDataInputStream data)

isNewLine

protected boolean isNewLine(int nextChar)

loadExternalTable

public boolean loadExternalTable(Properties props)

parseTableProperties

protected void parseTableProperties(ObjectInputStream in)

renameTableFiles

protected void renameTableFiles(String oldName, String name)

writeHeader

protected void writeHeader(BufferedDataOutputStream dataFile)

writeRow

protected void writeRow(BufferedDataOutputStream out, Row row)

writeTableProperties

protected void writeTableProperties(ObjectOutputStream out)