How to create and use a custom data loader

I want create a custom dataloader to load data from a Nosql database (MongoDB, Neo4j or OrientDB). How can I create a custom data loader?

In wiki i found this paragraph TODO howto create and use custom data loader ;(

1 Like

Hello.

First of all - sorry for the inconvinience, we will update the documentation soon.

To create your own data loader you need to implement the com.haulmont.yarg.loaders.ReportDataLoader iterface and then register your data loader using com.haulmont.yarg.loaders.factory.DefaultLoaderFactory#registerDataLoader. Data loader object is expected to be a singleton.

The loader should return list of maps, where each map in the list represents a data row with named properties (key is property name, value is property value).

Please let me know if you need more information.