info.archinnov.achilles.context.ThriftDaoContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of achilles-thrift Show documentation
Show all versions of achilles-thrift Show documentation
Thrift implementation for Achilles using Hector library
package info.archinnov.achilles.context;
import info.archinnov.achilles.dao.ThriftCounterDao;
import info.archinnov.achilles.dao.ThriftGenericEntityDao;
import info.archinnov.achilles.dao.ThriftGenericWideRowDao;
import java.util.Map;
/**
* ThriftDaoContext
*
* @author DuyHai DOAN
*
*/
public class ThriftDaoContext
{
private final Map entityDaosMap;
private final Map wideRowDaosMap;
private final ThriftCounterDao thriftCounterDao;
public ThriftDaoContext(Map entityDaosMap,
Map wideRowDaosMap, ThriftCounterDao thriftCounterDao)
{
this.entityDaosMap = entityDaosMap;
this.wideRowDaosMap = wideRowDaosMap;
this.thriftCounterDao = thriftCounterDao;
}
public ThriftCounterDao getCounterDao()
{
return thriftCounterDao;
}
public ThriftGenericEntityDao findEntityDao(String columnFamilyName)
{
return entityDaosMap.get(columnFamilyName);
}
public ThriftGenericWideRowDao findWideRowDao(String columnFamilyName)
{
return wideRowDaosMap.get(columnFamilyName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy