我連接到土衛六(泰坦使用-ALL-0.4.4)從Java到檢索泰坦正確的數據無法使用小鬼
TitanGraph g = TitanFactory.open("/titan-all-0.4.4/conf/titan-cassandra.properties");
哪裏titan-cassandra.properties
是自帶泰坦的默認文件。
我試圖插入圖G爲頂點,
Vertex a = g.addVertex(null);
a.setProperty("name", "a");
Vertex b = g.addVertex(null);
b.setProperty("name", "b");
Vertex c = g.addVertex(null);
c.setProperty("name", "c");
Vertex d = g.addVertex(null);
d.setProperty("name", "d");
g.commit();`
然後我通過精怪查詢作爲,
g = TitanFactory.open("/titan-all-0.4.4/conf/titan-cassandra.properties");
g.V.count()
的g.V.count()
(或一般像g.V.map()
任何其他功能)在返回乘以正確的值(或數據),有時不正確。例如。在上面的程序中計數值是4,但有時g.V.count()
返回1,在時間4.我也做g.V.map()
驗證,它是按照計數。 (有時候並不是所有的數據都被檢索到,有時它可以正常工作)
我應該如何確認我試圖添加到圖中的數據是否實際添加並確認通過gremlin查詢?
聽起來像某種cassandra問題。 –
你剛剛開始與泰坦?版本1.0在九月發佈。 http://titandb.io –
我是泰坦新手,我在[Github鏈接](https://github.com/thinkaurelius)上下載了Titian/All 0.4.4(向下滾動頁面,有一張桌子) /鈦/維基/下載)。你認爲卡桑德拉/泰坦存在一些問題嗎? (同樣有時g.V.count()儘管插入了頂點仍然顯示零值) – PJoshi