Package com.qcefast.util
Class DataSetFile
- java.lang.Object
-
- com.qcefast.util.DataSetFile
-
public class DataSetFile extends java.lang.Object
Class used to work with Data set files- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.Integer,java.lang.String>
columnIndexMap
java.util.List<java.util.Map<java.lang.String,java.lang.String>>
dataSetRows
java.lang.String
DELIMITER
-
Constructor Summary
Constructors Constructor Description DataSetFile(java.io.File dataSetFile)
Constructor for DataSetFile
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.Integer,java.lang.String>
getColumnIndexMap()
Returns a map containing the column indices (keys) and column names (values) from the dataset filejava.util.List<java.util.Map<java.lang.String,java.lang.String>>
getDataSetRows()
Returns a list of maps that represent the data from the dataset file.
-
-
-
Field Detail
-
DELIMITER
public final java.lang.String DELIMITER
- See Also:
- Constant Field Values
-
columnIndexMap
public java.util.Map<java.lang.Integer,java.lang.String> columnIndexMap
-
dataSetRows
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> dataSetRows
-
-
Constructor Detail
-
DataSetFile
public DataSetFile(java.io.File dataSetFile) throws FastException
Constructor for DataSetFile- Parameters:
dataSetFile
- The dataset file- Throws:
FastException
- If an error occurs during execution- Since:
- 1.0.0
-
-
Method Detail
-
getColumnIndexMap
public java.util.Map<java.lang.Integer,java.lang.String> getColumnIndexMap()
Returns a map containing the column indices (keys) and column names (values) from the dataset file- Returns:
- A map of indices and column names
- Since:
- 1.0.0
-
getDataSetRows
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getDataSetRows()
Returns a list of maps that represent the data from the dataset file. Each map in the list contains the column index for the keys, and column values for the values- Returns:
- List of dataset file rows
- Since:
- 1.0.0
-
-