簡體   English   中英

具有來自JSON的邊緣屬性的OrientDB etl

[英]OrientDB etl with edge properties from json

我正在使用http://orientdb.com/docs/last/Import-from-JSON.html上的說明將json文件加載到orientdb中。 當然一切正常。 我現在正在嘗試向邊緣添加屬性,但我真的不知道如何更改輸入和etl文件以識別邊緣屬性。

我想在邊緣擁有一個名為“ friendsSince”的屬性。 人們正在討論從csv導入時的edgeFields屬性,但是我不確定從JSON導入時如何使用它。

您可以在邊緣轉換器中使用edgeFields。 例:

"edge":{
   "class":"Account",
   "joinFieldName":"friends",
   "lookup":"Account.id",
   "direction":"out",
   "edgeFields": { "YOR_PROPERTY": "${input.YOR_PROPERTY}" },
   "unresolvedLinkAction":"NOTHING"
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM