@SuppressWarnings({ "rawtypes", "unchecked" })
public State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions) {
CassandraMapState state = new CassandraMapState(options, conf);
CachedMap cachedMap = new CachedMap(state, options.localCacheSize);
MapState mapState;
if (stateType == StateType.NON_TRANSACTIONAL) {
mapState = NonTransactionalMap.build(cachedMap);
} else if (stateType == StateType.OPAQUE) {