计算Neo4j中的原语 [英] Counting primitives in Neo4j

查看:85
本文介绍了计算Neo4j中的原语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读文档 rel =noreferrer> neo4j ,它是组件,但尚未遇到让我查询图中的基元(节点,关系和属性)的总数。这个功能是存在于某个地方还是我将不得不编写遍历整个图表的代码进行计数?

I have been reading through the documentation for neo4j and it's components and have yet to come across functionality that lets me query the total number of primitives (nodes, relationships, and properties) in the graph. Does this functionality exist somewhere or am I going to have to write code that traverses the entire graph counting as it goes?

推荐答案

谢谢对于这个问题!我是Neo4j团队的成员,目前我们有商业工具报告此类信息。但是,API的扩展计划用于下一个开源版本。目前您可以使用以下非官方API:

Thanks for the question! I'm on the Neo4j team, and we currently have commercial tools which report this kind of information. However, an extension of the API is scheduled for the next open source version. For the time being you can use the following non-official API:

EmbeddedNeo.getConfig().getNeoModule().getNodeManager().getNumberOfIdsInUse(Class)

其中类为 Node.class Relationship.class PropertyStore.class

这篇关于计算Neo4j中的原语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆