Package net.ontopia.topicmaps.db2tm
Class CSVDataSource
java.lang.Object
net.ontopia.topicmaps.db2tm.CSVDataSource
- All Implemented Interfaces:
DataSourceIF
INTERNAL: Data source that reads CSV files from a directory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected intprotected final RelationMappingprotected Fileprotected charprotected char -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()INTERNAL: Closes the data source so that it can release any open resources.getChangelogReader(Changelog changelog, String startOrder) INTERNAL: Returns a changelog reader.getMaxOrderValue(Changelog changelog) INTERNAL: Returns the maximum value of the order column for the specified changelog.INTERNAL: Returns a tuple reader for the given relation.INTERNAL: Returns the relations that the data source knows of.protected voidsetEncoding(String encoding) protected voidsetIgnoreFirstLines(int ignoreFirstLines) protected voidprotected voidsetQuoteCharacter(char quoteCharacter) protected voidsetSeparator(char separator) toString()
-
Field Details
-
mapping
-
path
-
encoding
-
separator
protected char separator -
quoteCharacter
protected char quoteCharacter -
ignoreFirstLines
protected int ignoreFirstLines
-
-
Method Details
-
setPath
-
setEncoding
-
setSeparator
protected void setSeparator(char separator) -
setQuoteCharacter
protected void setQuoteCharacter(char quoteCharacter) -
setIgnoreFirstLines
protected void setIgnoreFirstLines(int ignoreFirstLines) -
getRelations
Description copied from interface:DataSourceIFINTERNAL: Returns the relations that the data source knows of. The collection return contains Relation instances.- Specified by:
getRelationsin interfaceDataSourceIF
-
getReader
Description copied from interface:DataSourceIFINTERNAL: Returns a tuple reader for the given relation.- Specified by:
getReaderin interfaceDataSourceIF
-
getChangelogReader
Description copied from interface:DataSourceIFINTERNAL: Returns a changelog reader.- Specified by:
getChangelogReaderin interfaceDataSourceIF
-
getMaxOrderValue
Description copied from interface:DataSourceIFINTERNAL: Returns the maximum value of the order column for the specified changelog.- Specified by:
getMaxOrderValuein interfaceDataSourceIF
-
close
public void close()Description copied from interface:DataSourceIFINTERNAL: Closes the data source so that it can release any open resources.- Specified by:
closein interfaceDataSourceIF
-
toString
-