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))+"');")
}
}
私たちが直面する課題は、1つのノードの複数のエントリを取得するたびに発生します。 http://i.stack.imgur.com/cQ7wN.png
titan dbに一意のレコードを挿入する最適な方法を教えてください。