org.axiondb.engine.tables

Class DelimitedFlatfileTable

public class DelimitedFlatfileTable extends BaseFlatfileTable

A disk-resident Delimited Flatfile Table.
TODO: Support for multiple delimiter for field and record TODO: Support for treating consecutive delimiter as one

Version: $Revision: 1.18 $ $Date: 2006/01/10 21:02:36 $

Author: Ahimanikya Satapathy Jonathan Giron

Field Summary
static StringPROP_FIELDDELIMITER
static StringPROP_QUALIFIER
Constructor Summary
DelimitedFlatfileTable(String name, Database db)
Method Summary
protected StringgetDefaultDataFileExtension()
protected StringgetQualifier()
protected intgetQualifierLength()
protected RowgetRowByOffset(int idToAssign, long ptr)
PropertiesgetTableProperties()
protected booleanisEndOfRecord(int recLength, int nextChar, BufferedDataInputStream data)
protected booleanisNewLine(int nextChar)
protected booleanisQuoted()
booleanloadExternalTable(Properties props)
protected voidparseTableProperties(ObjectInputStream in)
protected voidwriteHeader(BufferedDataOutputStream dataFile)
protected voidwriteRow(BufferedDataOutputStream buffer, Row row)
protected voidwriteTableProperties(ObjectOutputStream out)

Field Detail

PROP_FIELDDELIMITER

public static final String PROP_FIELDDELIMITER

PROP_QUALIFIER

public static final String PROP_QUALIFIER

Constructor Detail

DelimitedFlatfileTable

public DelimitedFlatfileTable(String name, Database db)

Method Detail

getDefaultDataFileExtension

protected String getDefaultDataFileExtension()

getQualifier

protected String getQualifier()

getQualifierLength

protected int getQualifierLength()

getRowByOffset

protected Row getRowByOffset(int idToAssign, long ptr)

getTableProperties

public Properties getTableProperties()

isEndOfRecord

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

isNewLine

protected boolean isNewLine(int nextChar)

isQuoted

protected boolean isQuoted()

loadExternalTable

public boolean loadExternalTable(Properties props)

parseTableProperties

protected void parseTableProperties(ObjectInputStream in)

writeHeader

protected void writeHeader(BufferedDataOutputStream dataFile)

writeRow

protected void writeRow(BufferedDataOutputStream buffer, Row row)

writeTableProperties

protected void writeTableProperties(ObjectOutputStream out)