本文整理汇总了Java中com.thinkaurelius.titan.CassandraStorageSetup.getEmbeddedConfiguration方法的典型用法代码示例。如果您正苦于以下问题:Java CassandraStorageSetup.getEmbeddedConfiguration方法的具体用法?Java CassandraStorageSetup.getEmbeddedConfiguration怎么用?Java CassandraStorageSetup.getEmbeddedConfiguration使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.thinkaurelius.titan.CassandraStorageSetup
的用法示例。
在下文中一共展示了CassandraStorageSetup.getEmbeddedConfiguration方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getConfiguration
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public WriteConfiguration getConfiguration() {
String className = getClass().getSimpleName();
ModifiableConfiguration mc = CassandraStorageSetup.getEmbeddedConfiguration(className);
mc.set(PAGE_SIZE,500);
mc.set(CPOOL_MAX_TOTAL, -1);
mc.set(CPOOL_MAX_ACTIVE, 1);
mc.set(CPOOL_MAX_IDLE, 1);
// ES Index
mc.set(INDEX_BACKEND, "elasticsearch", INDEX_NAME);
mc.set(LOCAL_MODE, false, INDEX_NAME);
mc.set(CLIENT_ONLY, true, INDEX_NAME);
return mc.getConfiguration();
}
示例2: getConfiguration
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public WriteConfiguration getConfiguration() {
String className = getClass().getSimpleName();
ModifiableConfiguration mc = CassandraStorageSetup.getEmbeddedConfiguration(className);
mc.set(CPOOL_MAX_TOTAL, -1);
mc.set(CPOOL_MAX_ACTIVE, 1);
mc.set(CPOOL_MAX_IDLE, 1);
mc.set(PAGE_SIZE, 500);
return mc.getConfiguration();
}
示例3: openStorageManager
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public KeyColumnValueStoreManager openStorageManager() throws BackendException {
return new CassandraEmbeddedStoreManager(CassandraStorageSetup.getEmbeddedConfiguration(getClass().getSimpleName()));
}
示例4: getBaseStorageConfiguration
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public ModifiableConfiguration getBaseStorageConfiguration() {
return CassandraStorageSetup.getEmbeddedConfiguration(getClass().getSimpleName());
}
示例5: openStorageManager
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public KeyColumnValueStoreManager openStorageManager(int idx) throws BackendException {
return new CassandraEmbeddedStoreManager(CassandraStorageSetup.getEmbeddedConfiguration(getClass().getSimpleName()));
}
示例6: getConfiguration
import com.thinkaurelius.titan.CassandraStorageSetup; //导入方法依赖的package包/类
@Override
public WriteConfiguration getConfiguration() {
String className = getClass().getSimpleName();
ModifiableConfiguration mc = CassandraStorageSetup.getEmbeddedConfiguration(className);
return mc.getConfiguration();
}