org.axiondb.engine.tables

Class FixedWidthFlatfileTable

public final class FixedWidthFlatfileTable extends BaseFlatfileTable

A disk-resident Fixed Width Flatfile Table.

Version: $Revision: 1.16 $ $Date: 2005/12/20 18:32:28 $

Author: Ahimanikya Satapathy Jonathan Giron

Field Summary
static StringPROP_HEADERBYTESOFFSET
Constructor Summary
FixedWidthFlatfileTable(String name, Database db)
Method Summary
voidaddColumn(Column col, boolean metaUpdateNeeded)
protected RowgetRowByOffset(int idToAssign, long ptr)
PropertiesgetTableProperties()
protected longignoreRowsToSkip()
protected voidinitializeTable()
protected booleanisEndOfRecord(int recLength, int nextChar, BufferedDataInputStream data)
booleanloadExternalTable(Properties props)
protected intnextLineLength(long fileOffset)
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

PROP_HEADERBYTESOFFSET

public static final String PROP_HEADERBYTESOFFSET

Constructor Detail

FixedWidthFlatfileTable

public FixedWidthFlatfileTable(String name, Database db)

Method Detail

addColumn

public void addColumn(Column col, boolean metaUpdateNeeded)

getRowByOffset

protected Row getRowByOffset(int idToAssign, long ptr)

getTableProperties

public Properties getTableProperties()

ignoreRowsToSkip

protected long ignoreRowsToSkip()

initializeTable

protected void initializeTable()

isEndOfRecord

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

loadExternalTable

public boolean loadExternalTable(Properties props)

nextLineLength

protected int nextLineLength(long fileOffset)

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)