buildDataColumn

open fun <D, P> buildDataColumn(name: String, values: List<D>, tableColumnMetadata: TableColumnMetadata, targetColumnSchema: ColumnSchema?, inferNullability: Boolean): DataColumn<P>

Builds a DataColumn from the given (preprocessed) values, adhering to targetColumnSchema.

Return

the built DataColumn

Parameters

name

the name of the column

values

the (preprocessed) values to put in the column

tableColumnMetadata

all information we have about the column

targetColumnSchema

the schema of the column DataColumn<P>, as determined by getTargetColumnSchema

inferNullability

whether to infer nullability from the runtime values (this is more expensive), as opposed to using the nullability information from the targetColumnSchema

Type Parameters

D

the type of the values after preprocessing

P

the type of the resulting DataColumn<P>, targetColumnSchema