
com.hmsonline.cassandra.index.dao.DaoFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hms-cassandra-indexing Show documentation
Show all versions of hms-cassandra-indexing Show documentation
A lightweight wide row indexing implementation for Cassandra.
The newest version!
package com.hmsonline.cassandra.index.dao;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.Keyspace;
import me.prettyprint.hector.api.factory.HFactory;
public class DaoFactory {
public static IndexDao getIndexDAO(Cluster cluster) {
Keyspace keyspace = HFactory.createKeyspace(IndexDao.KEYSPACE, cluster);
return new IndexDao(keyspace);
}
public static ConfigurationDao getConfigurationDAO(Cluster cluster) {
Keyspace keyspace = HFactory.createKeyspace(ConfigurationDao.KEYSPACE, cluster);
return new ConfigurationDao(keyspace);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy