org.apache.solr.handler.dataimport
Class XPathRecordReader
java.lang.Object
org.apache.solr.handler.dataimport.XPathRecordReader
public class XPathRecordReader
- extends Object
A streaming xpath parser which uses StAX for XML parsing. It supports only a
subset of xpath syntax.
This API is experimental and may change in the future.
- Since:
- solr 1.3
- Version:
- $Id: XPathRecordReader.java 681182 2008-07-30 19:35:58Z shalin $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathRecordReader
public XPathRecordReader(String forEachXpath)
addField
public XPathRecordReader addField(String name,
String xpath,
boolean multiValued)
getAllRecords
public List<Map<String,Object>> getAllRecords(Reader r)
streamRecords
public void streamRecords(Reader r,
XPathRecordReader.Handler handler)
Copyright © 2008 Apache Software Foundation. All Rights Reserved.