本文整理汇总了Java中com.thinkaurelius.titan.CassandraStorageSetup.getCassandraThriftConfiguration方法的典型用法代码示例。如果您正苦于以下问题:Java CassandraStorageSetup.getCassandraThriftConfiguration方法的具体用法?Java CassandraStorageSetup.getCassandraThriftConfiguration怎么用?Java CassandraStorageSetup.getCassandraThriftConfiguration使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.thinkaurelius.titan.CassandraStorageSetup
的用法示例。
在下文中一共展示了CassandraStorageSetup.getCassandraThriftConfiguration方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTitanConfiguration
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
protected ModifiableConfiguration getTitanConfiguration() {
String className = TitanCassandraOutputFormatTest.class.getSimpleName();
ModifiableConfiguration mc = CassandraStorageSetup.getCassandraThriftConfiguration(className);
mc.set(STORAGE_HOSTS, new String[]{"localhost"});
mc.set(DB_CACHE, false);
mc.set(GraphDatabaseConfiguration.LOCK_LOCAL_MEDIATOR_GROUP, "tmp");
return mc;
}
示例2: getConfiguration
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public WriteConfiguration getConfiguration() {
ModifiableConfiguration config =
CassandraStorageSetup.getCassandraThriftConfiguration(ThriftSolrTest.class.getName());
//Add index
config.set(SolrIndex.ZOOKEEPER_URL, SolrRunner.getMiniCluster().getZkServer().getZkAddress(), INDEX);
config.set(SolrIndex.WAIT_SEARCHER, true, INDEX);
config.set(INDEX_BACKEND,"solr",INDEX);
//TODO: set SOLR specific config options
return config.getConfiguration();
}
示例3: getConfiguration
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public WriteConfiguration getConfiguration() {
ModifiableConfiguration config =
CassandraStorageSetup.getCassandraThriftConfiguration(ThriftSolrTest.class.getName());
//Add index
config.set(SolrIndex.ZOOKEEPER_URL, SolrRunner.getMiniCluster().getZkServer().getZkAddress(), INDEX);
config.set(INDEX_BACKEND,"solr",INDEX);
//TODO: set SOLR specific config options
return config.getConfiguration();
}
示例4: openStorageManager
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public KeyColumnValueStoreManager openStorageManager() throws BackendException {
return new CassandraThriftStoreManager(CassandraStorageSetup.getCassandraThriftConfiguration(this.getClass().getSimpleName()));
}
示例5: setUp
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Before
public void setUp() throws BackendException {
manager = new CassandraThriftStoreManager(
CassandraStorageSetup.getCassandraThriftConfiguration(this.getClass().getSimpleName()));
store = manager.openDatabase("distributedcf");
}
示例6: openStorageManager
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public KeyColumnValueStoreManager openStorageManager(int idx) throws BackendException {
return new CassandraThriftStoreManager(CassandraStorageSetup.getCassandraThriftConfiguration(this.getClass().getSimpleName()));
}
示例7: getTitanConfiguration
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
private ModifiableConfiguration getTitanConfiguration() {
ModifiableConfiguration mc = CassandraStorageSetup.getCassandraThriftConfiguration(KEYSPACE_NAME);
mc.set(STORAGE_HOSTS, new String[]{"localhost"});
mc.set(DB_CACHE, false);
return mc;
}
示例8: getTitanConfiguration
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public ModifiableConfiguration getTitanConfiguration(String graphName, Class<?> test, String testMethodName) {
CassandraStorageSetup.startCleanEmbedded();
return CassandraStorageSetup.getCassandraThriftConfiguration(graphName);
}
示例9: getBaseStorageConfiguration
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public ModifiableConfiguration getBaseStorageConfiguration() {
return CassandraStorageSetup.getCassandraThriftConfiguration(this.getClass().getSimpleName());
}