org.simpleflatmapper.datastax.impl.getter.DatastaxSetGetter 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.getter;
import com.datastax.driver.core.GettableByIndexData;
import org.simpleflatmapper.reflect.Getter;
import java.util.Set;
public class DatastaxSetGetter implements Getter> {
private final int index;
private final Class type;
public DatastaxSetGetter(int index, Class type) {
this.index = index;
this.type = type;
}
@Override
public Set get(GettableByIndexData target) throws Exception {
return target.getSet(index, type);
}
}