org.simpleflatmapper.datastax.impl.getter.DatastaxTimestampGetter 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.Date;
public class DatastaxTimestampGetter implements Getter {
private final int index;
public DatastaxTimestampGetter(int index) {
this.index = index;
}
@Override
public Date get(GettableByIndexData target) throws Exception {
return target.getTimestamp(index);
}
}