Search code examples
orientdborientdb2.2orientdb-etl

Printing RIds of Vertices created during oetl.sh


I'm wondering if it is possible to print the rids of vertices's created during the oetl.sh script, I felt it might help in faster creation of Edges from Java code.


Solution

  • You can use for example

    "transformers": [
                { "vertex": { "class": "yourVertex" } },
                { "code":   { "language": "Javascript", "code": "print('Current record: ' + record.getIdentity());" } }
            ],
    

    Hope it helps.