All Packages Class Hierarchy This Package Previous Next Index
Class ibs.data.DataFileToTable
java.lang.Object
|
+----ibs.data.DataFileToTable
- public class DataFileToTable
- extends Object
-
DataFileToTable(String, String)
- Loads given datafile from the datafile_path directory into the IbsTable.
-
DataFileToTable(String, String, PrintWriter)
- Loads given datafile from the datafile_path directory into the IbsTable.
-
DataFileToTable(String, String, String, String)
- Loads given datafile from the datafile_path directory into the IbsTable.
-
DataFileToTable(String, String, String, String, PrintWriter)
- Loads given datafile from the datafile_path directory into the IbsTable.
-
getDataTable()
- Returns loaded data table as IbsTable object
-
main(String[])
- THIS FUNCTIONALITY EXIST FOR DIAGNOSTICS PURPOSE ONLY!
Usage: java DataFileToTable file_name file_path
This process assumes that you have param file located in the same directory as
the datafile and its name is datafilename.prop
DataFileToTable
public DataFileToTable(String datafile_path,
String datafile_name) throws Exception
- Loads given datafile from the datafile_path directory into the IbsTable.
Note: IbsTable object creating requires table properties to be loaded from a
table properties file. Since this method call does not require any information
on property file path or name, it assumes that property file resides in same
directory as datafile_path directory and name of the property file is same
as DATA_FILENAME minus EXTENTION plus ".prop".
- Parameters:
- datafile_path - A path where datafile as well as property file can be found.
- datafile_name - A data filename to be loaded.
- Throws: Exception
- If datafile or property file not found or an error encountered
while loading data file into the table. Check you datafile and property
file to ensure that data maps correctly to the table columns in property file.
DataFileToTable
public DataFileToTable(String datafile_path,
String datafile_name,
PrintWriter log_stream) throws Exception
- Loads given datafile from the datafile_path directory into the IbsTable.
Note: IbsTable object creating requires table properties to be loaded from a
table properties file. Since this method call does not require any information
on property file path or name, it assumes that property file resides in same
directory as datafile_path directory and name of the property file is same
as DATA_FILENAME minus EXTENTION plus ".prop".
- Parameters:
- datafile_path - A path where datafile as well as property file can be found.
- datafile_name - A data filename to be loaded.
- log_stream - A PrintWriter where data file loading activities should be logged.
- Throws: Exception
- If datafile or property file not found or an error encountered
while loading data file into the table. Check you datafile and property
file to ensure that data maps correctly to the table columns in property file.
DataFileToTable
public DataFileToTable(String datafile_path,
String datafile_name,
String propfile_path,
String propfile_name) throws Exception
- Loads given datafile from the datafile_path directory into the IbsTable.
- Parameters:
- datafile_path - A path where datafile can be found.
- datafile_name - A data filename to be loaded.
- propfile_path - A path where property file can be found.
- propfile_name - A property filename to be used for data mapping.
- Throws: Exception
- If datafile or property file not found or an error encountered
while loading data file into the table. Check you datafile and property
file to ensure that data maps correctly to the table columns in property file.
DataFileToTable
public DataFileToTable(String datafile_path,
String datafile_name,
String propfile_path,
String propfile_name,
PrintWriter log_stream) throws Exception
- Loads given datafile from the datafile_path directory into the IbsTable.
- Parameters:
- datafile_path - A path where datafile can be found.
- datafile_name - A data filename to be loaded.
- propfile_path - A path where property file can be found.
- propfile_name - A property filename to be used for data mapping.
- log_stream - A PrintWriter where data file loading activities should be logged.
- Throws: Exception
- If datafile or property file not found or an error encountered
while loading data file into the table. Check you datafile and property
file to ensure that data maps correctly to the table columns in property file.
getDataTable
public IbsTable getDataTable()
- Returns loaded data table as IbsTable object
- Returns:
- An IbsTable object containing loaded data. Returns
null if data loading was not successful.
main
public static void main(String args[])
- THIS FUNCTIONALITY EXIST FOR DIAGNOSTICS PURPOSE ONLY!
Usage: java DataFileToTable file_name file_path
This process assumes that you have param file located in the same directory as
the datafile and its name is datafilename.prop
All Packages Class Hierarchy This Package Previous Next Index