JdbcToDataFrameConverter
Represents all type information that can be retrieved from an SQL column. This can be extended for your specific DbType if you need extra information.
This class needs to be stateless, so it can be memoized in AdvancedDbType.generateConverter.
Use jdbcToDfConverterFor to create an instance.
This API is experimental and subject to change.
Type Parameters
the type of the value coming from the JDBC driver, expectedJdbcType.
the type of the column values after preprocessing, preprocessedValueType. Will be equal to J if valuePreprocessor is null.
the type of the column values after postprocessing, comparable to DataColumn<P> of targetSchema. Will be equal to D if columnBuilder is null.
Constructors
Properties
an optional function that converts a List with values of type D to a DataColumn of with values of type P.
the target schema of the column after running the optional valuePreprocessor and columnBuilder. Can be null if the target schema is dependent on the runtime input and thus cannot be determined from input types alone.
an optional function that converts values from ResultSet.getObject to a cell/row suitable to be put into a DataColumn.