org.simpleflatmapper.datastax.impl.DatastaxKeySourceGetter 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 com.datastax.driver.core.GettableByIndexData;
import org.simpleflatmapper.datastax.DatastaxColumnKey;
import org.simpleflatmapper.map.context.KeySourceGetter;
public class DatastaxKeySourceGetter implements KeySourceGetter {
public static final DatastaxKeySourceGetter INSTANCE = new DatastaxKeySourceGetter();
private DatastaxKeySourceGetter() {
}
@Override
public Object getValue(DatastaxColumnKey key, GettableByIndexData source) {
return source.getObject(key.getIndex());
}
}