preprocessValue

override fun <J, D> preprocessValue(value: J, tableColumnMetadata: TableColumnMetadata, expectedJdbcType: KType, expectedPreprocessedValueType: KType): D

(Potentially) preprocesses the value for the given column before collecting it in a DataFrame DataColumn.

While DbType contains some basic preprocessing logic, converting some Java classes to Kotlin ones, it's often necessary to override this function for specific JDBC implementations.

Return

the preprocessed version of value

Parameters

value

the value to preprocess

tableColumnMetadata

all information we have about the column

expectedJdbcType

the JDBC type, J, obtained from getExpectedJdbcType

expectedPreprocessedValueType

the type of the return value, D, obtained from getPreprocessedValueType

Type Parameters

J

the JDBC type, expectedJdbcType

D

the type of the return value, expectedPreprocessedValueType