Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by NoblePaul: http://wiki.apache.org/solr/DataImportHandler ------------------------------------------------------------------------------ * or if there are multiple rows to be returned it must be a List<Map<String, Object>> * */ - public Object transformRow(Context context, Map<String, Object> aRow); + public Object transformRow(Map<String, Object> row, Context context); } }}} - The Context is the interface that provides the contextual information necessary to process the data. + The Context is the interface that provides the contextual information that may be necessary to process the data. + + Alternately the class `Foo` may choose NOT TO implement this interface and just write a method with this signature + {{{ + public Object transformRow(Map<String, Object> row) + }}} + + So there is no compile-time dependency on the !DataImportHandler API + The configuration has a 'flexible' schema. It lets the user provide arbitrary attributes in an 'entity' tag and 'field' tags. The tool reads the data and hands it over to the implementation class as it is. If the 'Transformer' needs extra information to be provided on a per entity/field basis it can do so. The values can be obtained from the Context.
