本文整理汇总了Java中com.thinkaurelius.titan.diskstorage.Backend.clearStorage方法的典型用法代码示例。如果您正苦于以下问题:Java Backend.clearStorage方法的具体用法?Java Backend.clearStorage怎么用?Java Backend.clearStorage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.thinkaurelius.titan.diskstorage.Backend
的用法示例。
在下文中一共展示了Backend.clearStorage方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: clearGraph
import com.thinkaurelius.titan.diskstorage.Backend; //导入方法依赖的package包/类
public static void clearGraph(WriteConfiguration config) throws BackendException {
ModifiableConfiguration adjustedConfig = new ModifiableConfiguration(GraphDatabaseConfiguration.ROOT_NS,config.copy(), BasicConfiguration.Restriction.NONE);
adjustedConfig.set(GraphDatabaseConfiguration.LOCK_LOCAL_MEDIATOR_GROUP, "tmp");
adjustedConfig.set(GraphDatabaseConfiguration.UNIQUE_INSTANCE_ID, "inst");
Backend backend = new Backend(adjustedConfig);
backend.initialize(adjustedConfig);
backend.clearStorage();
}
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:9,代码来源:TitanGraphBaseTest.java示例2: setUp
import com.thinkaurelius.titan.diskstorage.Backend; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
this.config = getConfiguration();
TestGraphConfigs.applyOverrides(config);
Preconditions.checkNotNull(config);
adjustedConfig = new ModifiableConfiguration(GraphDatabaseConfiguration.ROOT_NS,config.copy(), BasicConfiguration.Restriction.NONE);
adjustedConfig.set(GraphDatabaseConfiguration.LOCK_LOCAL_MEDIATOR_GROUP, "tmp");
adjustedConfig.set(GraphDatabaseConfiguration.UNIQUE_INSTANCE_ID, "inst");
Backend backend = new Backend(adjustedConfig);
backend.initialize(adjustedConfig);
backend.clearStorage();
open(config);
logManagers = new HashMap<String,LogManager>();
}
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:15,代码来源:TitanGraphBaseTest.java示例3: clear
import com.thinkaurelius.titan.diskstorage.Backend; //导入方法依赖的package包/类
public void clear() throws Exception {
ModifiableConfiguration mc = getTitanConfiguration();
mc.set(UNIQUE_INSTANCE_ID, "deleter");
mc.set(GraphDatabaseConfiguration.LOCK_LOCAL_MEDIATOR_GROUP, "tmp");
Backend backend = new Backend(mc);
backend.initialize(mc);
backend.clearStorage();
backend.close();
}
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:10,代码来源:TitanOutputFormatTest.java示例4: clear
import com.thinkaurelius.titan.diskstorage.Backend; //导入方法依赖的package包/类
@Before
public void clear() throws BackendException {
ModifiableConfiguration mc = getTitanConfiguration();
mc.set(UNIQUE_INSTANCE_ID, "deleter");
mc.set(GraphDatabaseConfiguration.LOCK_LOCAL_MEDIATOR_GROUP, "tmp");
Backend backend = new Backend(mc);
backend.initialize(mc);
backend.clearStorage();
backend.close();
}
开发者ID:graben1437,项目名称:titan0.5.4-hbase1.1.1-custom,代码行数:11,代码来源:TitanCassandraInputFormatTest.java本文标签属性:
示例:示例英文
代码:代码编程
java:java游戏
Backend:backend什么意思
clearStorage:clearStorage