org.apache.solr.handler.dataimport
Interface XPathRecordReader.Handler
- Enclosing class:
- XPathRecordReader
public static interface XPathRecordReader.Handler
Implement this interface to stream records as and when one is found.
handle
void handle(Map<String,Object> record,
String xpath)
- Parameters:
record
- The record map. The key is the field name as provided in
the addField() methods. The value can be a single String (for single
valued fields) or a List<String> (for multiValued).xpath
- The forEach XPATH for which this record is being emitted
If there is any change all parsing will be aborted and the Exception
is propagated up
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.