直击Titan图数据库:如何提升25%+的反欺诈检测效率?

复制#创建一个集群 gremlin> graph = TitanFactory.open(conf/titan-hbase.properties) ==>standardtitangraph[hbase:[titan003,直击 titan004, titan005]] gremlin> g = graph.traversal() ==>graphtraversalsource[standardtitangraph[hbase:[titan003, titan004, titan005]], standard] #查询name为saturn的结点 gremlin> saturn = g.V().has(name, saturn).next() ==>v[256] #查看saturn结点有哪些属性 gremlin> g.V(saturn).valueMap() ==>[name:[saturn], age:[10000]] #saturn的祖父的云服务器姓名 gremlin> g.V(saturn).in(father).in(father).values(name) ==>hercules #查询hercules的父母的b2b供应网信息 gremlin> g.V(hercules).out(father, mother) ==>v[1024] ==>v[1792] gremlin> g.V(hercules).out(father, mother).values(name) ==>jupiter ==>alcmene gremlin> g.V(hercules).out(father, mother).label() ==>god ==>human gremlin> hercules.label() ==>demigod 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.
本文地址:http://www.bzve.cn/html/350b8999560.html
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。