1
下面是我用於將數據插入到titan中的Scala代碼。在titandb中插入數據時獲取重複條目
for(n <- nodes){
stringNodes = stringNodes.concat("v"+n.letter+" = graph.addVertex('"+n.label+"');")
for(a <- n.attributes){
stringNodes = stringNodes.concat("v"+n.letter+".property('"+a.name+"','"+row(row.fieldIndex(a.name))+"');")
}
}
我們面臨的挑戰是我們每次獲得一個節點的多個條目。 http://i.stack.imgur.com/cQ7wN.png
能否請你幫忙,並建議在泰坦數據庫中插入獨特記錄的最佳方式?