org.simpleflatmapper.datastax.impl.ConverterMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-datastax Show documentation
Show all versions of sfm-datastax Show documentation
Cassandra Datastax SFM supports.
package org.simpleflatmapper.datastax.impl;
import org.simpleflatmapper.converter.Context;
import org.simpleflatmapper.map.ContextualSourceMapper;
import org.simpleflatmapper.converter.ContextualConverter;
public class ConverterMapper implements ContextualConverter {
private final ContextualSourceMapper mapper;
public ConverterMapper(ContextualSourceMapper mapper) {
this.mapper = mapper;
}
@Override
public O convert(I in, Context context) throws Exception {
return mapper.map(in);
}
}