Search in sources :

Example 1 with DataCellValueFactory

use of org.knime.core.data.v2.value.cell.DataCellValueFactory in project knime-core by knime.

the class SerializerFactoryValueSchema method findValueFactory.

/**
 * Find the factory for the given type (or DataCellValueFactory) and add it to the mapping
 */
private static final ValueFactory<?, ?> findValueFactory(final DataType type, final Map<DataType, String> factoryMapping, final DataCellSerializerFactory cellSerializerFactory, final IWriteFileStoreHandler fileStoreHandler) {
    var factory = ValueFactoryUtils.getValueFactory(type, t -> new DataCellValueFactory(cellSerializerFactory, fileStoreHandler, t));
    factoryMapping.put(type, factory.getClass().getName());
    return factory;
}
Also used : DataCellValueFactory(org.knime.core.data.v2.value.cell.DataCellValueFactory)

Aggregations

DataCellValueFactory (org.knime.core.data.v2.value.cell.DataCellValueFactory)1