Package-level declarations

Types

Link copied to clipboard
data class ColumnType(val name: String, val dataType: DataType)

Describes a type of column within the tabular file. There are only two types: numeric and text The numeric type should be used for numeric data (float, double, long, int, etc.). In addition, use the numeric type for boolean values, which are stored 1.0 = true, 0.0 = false). The text type should be used for strings and date/time data. Date/time data is saved as ISO8601 strings ("YYYY-MM-DD HH:MM:SS.SSS"). If you need more type complexity, you should use a database.

Link copied to clipboard
Link copied to clipboard

An abstraction for a row within a tabular file. The access to the columns is 0-based. Why? Because most if not all of kotlin's data containers (arrays, lists, etc.) are 0-based. The first column has index 0, 2nd column has index 1, etc.

Link copied to clipboard
interface RowGetterIfc : RowIfc

An abstraction for getting information and data from a row within a tabular file. The access to the columns is 0-based. Why? Because most if not all of kotlin's data containers (arrays, lists, etc.) are 0-based. The first column has index 0, 2nd column has index 1, etc.

Link copied to clipboard
interface RowIfc
Link copied to clipboard
interface RowSetterIfc : RowIfc

An abstraction for getting information and setting data for a row within a tabular file. The access to the columns is 0-based. Why? Because most if not all of kotlin's data containers (arrays, lists, etc.) are 0-based. The first column has index 0, 2nd column has index 1, etc.

Link copied to clipboard
abstract class TabularFile(columns: Map<String, DataType>, val path: Path)

An abstraction for holding tabular data in a single file. That is, a list of columns with specified data types and rows containing the values of every column stored within rows within a file. The order of the columns is important. (first column, second column, etc.). The order of the rows is relevant (first row, second row, etc.).

Link copied to clipboard

An abstraction for reading rows of tabular data. Columns of the tabular data can be of numeric or text. Using this subclass of TabularFile users can read rows of data. The user is responsible for iterating rows with data of the appropriate type for the column and reading the row into their program.

Link copied to clipboard
class TabularOutputFile(columnTypes: Map<String, DataType>, val path: Path) : TabularFile

An abstraction for writing rows of tabular data. Columns of the tabular data can be of numeric or text. Using this subclass of TabularFile users can write rows of data. The user is responsible for filling rows with data of the appropriate type for the column and writing the row to the file.