当前位置: 首页>>代码示例>>Java>>正文


Java CassandraStorageSetup.getCassandraThriftConfiguration方法代码示例

本文整理汇总了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;
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:10,代码来源:TitanCassandraOutputFormatTest.java

示例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();
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:12,代码来源:ThriftSolrTest.java

示例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();
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:12,代码来源:ThriftSolrTest.java

示例4: openStorageManager

import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public KeyColumnValueStoreManager openStorageManager() throws BackendException {
    return new CassandraThriftStoreManager(CassandraStorageSetup.getCassandraThriftConfiguration(this.getClass().getSimpleName()));
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:5,代码来源:ThriftIDAuthorityTest.java

示例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");
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:7,代码来源:ThriftDistributedStoreManagerTest.java

示例6: openStorageManager

import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public KeyColumnValueStoreManager openStorageManager(int idx) throws BackendException {
    return new CassandraThriftStoreManager(CassandraStorageSetup.getCassandraThriftConfiguration(this.getClass().getSimpleName()));
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:5,代码来源:ThriftLockStoreTest.java

示例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;
}
 
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:7,代码来源:TitanCassandraInputFormatTest.java

示例8: getTitanConfiguration

import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public ModifiableConfiguration getTitanConfiguration(String graphName, Class<?> test, String testMethodName) {
    CassandraStorageSetup.startCleanEmbedded();
    return CassandraStorageSetup.getCassandraThriftConfiguration(graphName);
}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:6,代码来源:ThriftGraphProvider.java

示例9: getBaseStorageConfiguration

import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public ModifiableConfiguration getBaseStorageConfiguration() {
    return CassandraStorageSetup.getCassandraThriftConfiguration(this.getClass().getSimpleName());
}
 
开发者ID:graben1437,项目名称:titan1.0.1.kafka,代码行数:5,代码来源:ThriftStoreTest.java


注:本文中的com.thinkaurelius.titan.CassandraStorageSetup.getCassandraThriftConfiguration方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。