All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.archinnov.achilles.dao.ThriftGenericWideRowDao Maven / Gradle / Ivy

package info.archinnov.achilles.dao;

import static info.archinnov.achilles.serializer.ThriftSerializerUtils.COMPOSITE_SRZ;
import info.archinnov.achilles.consistency.AchillesConsistencyLevelPolicy;
import org.apache.cassandra.utils.Pair;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.Keyspace;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * ThriftGenericWideRowDao
 * 
 * @author DuyHai DOAN
 * 
 */
public class ThriftGenericWideRowDao extends ThriftAbstractDao
{

	private static final Logger log = LoggerFactory.getLogger(ThriftGenericWideRowDao.class);

	public  ThriftGenericWideRowDao(Cluster cluster, Keyspace keyspace, //
			String cf, //
			AchillesConsistencyLevelPolicy consistencyPolicy, Pair rowkeyAndValueClasses)
	{

		super(cluster, keyspace, cf, consistencyPolicy, rowkeyAndValueClasses);
		columnNameSerializer = COMPOSITE_SRZ;
		log
				.debug("Initializing GenericColumnFamilyDao for key serializer '{}', composite comparator and value serializer '{}'",
						this.rowSrz().getComparatorType().getTypeName(), this
								.valSrz()
								.getComparatorType()
								.getTypeName());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy