Add a new data type to Pentaho Kettle

陌路散爱 提交于 2019-11-28 01:46:04

问题


I am trying to add a new data type (Geometry) to Kettle. I have added a new Value type to org.pentaho.di.compatibility. I have added a ValueGeometry class and made the necessary modifications to ValueInterface and Value. The code compiles but the new data type does not show up in plugins like Select. What am I missing here? Also I'd appreciate if you could point me towards the source code for these plugins.

Thanks.


回答1:


As of Kettle 5.0, it is possible to create a plugin to provide new Value types: http://jira.pentaho.com/browse/PDI-191

I have a plugin to add a key/value type (like java.util.Map): https://github.com/mattyb149/pdi-valuemeta-map

and another to represent a Graph (using a property graph model): https://github.com/mattyb149/pdi-graph-computing/tree/master/pdi-valuemeta-graphSON

Both of these are in the PDI Marketplace if you'd like to try them out :)



来源:https://stackoverflow.com/questions/27410048/add-a-new-data-type-to-pentaho-kettle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!