columns

fun columns(names: List<String>, dataType: DataType): Map<String, DataType>

Creates names.size() columns with the provided names and data type

Return

a map with the column names all assigned the same data type

Parameters

names

the names for the columns, must not be null or empty

dataType

the data type to associated with each column


fun columns(numColumns: Int, dataType: DataType): Map<String, DataType>

Creates n = numColumns of columns all with the same data type, with names C1, C2, ..., Cn

Return

a map with the column names all assigned the same data type

Parameters

numColumns

the number of columns to make, must be greater than 0

dataType

the type of all the columns