OrientDB ETL导入:'skip'运算符抛出异常

时间:2015-07-31 15:49:48

标签: java graph etl orientdb

我正在尝试在附带的ETL脚本的帮助下将.csv文件导入OrientDB v.2.0.13。

现在我的问题。使用运算符

{ "skip": { "expression": "name = '(unassigned)'"} }
我的.json配置文件中的

引发以下异常:


Exception in thread "main" com.orientechnologies.orient.core.exception.OConfigurationException: Error on creating ETL processor
        at com.orientechnologies.orient.etl.OETLProcessor.parse(OETLProcessor.java:278)
        at com.orientechnologies.orient.etl.OETLProcessor.parse(OETLProcessor.java:186)
        at com.orientechnologies.orient.etl.OETLProcessor.main(OETLProcessor.java:161)
Caused by: java.lang.IllegalArgumentException: Transformer 'skip' not found
        at com.orientechnologies.orient.etl.OETLComponentFactory.getTransformer(OETLComponentFactory.java:141)
        at com.orientechnologies.orient.etl.OETLProcessor.parse(OETLProcessor.java:260)
        ... 2 more

如果没有'skip'操作符,我的导入工作完美无缺,所以我猜问题不是配置文件。

有没有人知道这里的问题是什么?

干杯!

1 个答案:

答案 0 :(得分:0)

我发现文档未更新,请使用FLOW transformer。例如:

public ActionResult Send(ContactEmail email)
{
    ContactEmail e = new ContactEmail();
    e.From = email.From;
    e.FirstName = email.FirstName;
    e.LastName = email.LastName;
    e.SelectedSubject = email.SelectedSubject;
    e.Message = email.Message;

    e.Send();
    return RedirectToAction("Index");
}