简体   繁体   English

TitanDB删除包括索引在内的所有内容

[英]TitanDB Drop Everything Including Indexes

I would like to drop everything from TitanDB. 我想删除TitanDB中的所有内容。

This says that it's possible by removing all the vertices but I am failing to delete the graph with that recommended approach. 表示可以通过删除所有顶点来实现,但是我无法使用推荐的方法删除图形。 I can't do gVremove() in java and when I delete each Vertex independently this only gets rid of the vertices but leaves behind the indexes. 我无法在Java中执行gVremove() ,并且当我独立删除每个Vertex这只会除去顶点,但会留下索引。

Is there a way (from within java) of dropping everything ? 有没有办法(从Java内部)删除所有内容? I am essentially looking for the equivalent of using cqlsh and typing: 我本质上是在寻找使用cqlsh并键入的内容:

cqlsh> DROP KEYSPACE titan;

If you want to stick to the Titan tools, what about the TitanCleanup utility? 如果您要坚持使用Titan工具,那么TitanCleanup实用程序怎么办?

http://thinkaurelius.github.io/titan/javadoc/1.0.0/com/thinkaurelius/titan/core/util/TitanCleanup.html http://thinkaurelius.github.io/titan/javadoc/1.0.0/com/thinkaurelius/titan/core/util/TitanCleanup.html

Nuking the C* keyspace will certainly do the trick with great efficiency, though might leave external ("mixed") indexes stranded if you have them. 禁止使用C *键空间确实可以有效地解决这一问题,尽管如果有外部索引(“混合”)可能会使它们陷入困境。

You could use the Cassandra Java driver to connect to Cassandra and drop the keyspace. 您可以使用Cassandra Java驱动程序连接到Cassandra并删除键空间。 Make sure to close the TitanGraph first. 确保先关闭TitanGraph。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM