com.armatiek.infofuze.source.solr
Class SolrSource
java.lang.Object
javax.xml.transform.stream.StreamSource
com.armatiek.infofuze.source.AbstractStreamSource
com.armatiek.infofuze.source.solr.SolrSource
- All Implemented Interfaces:
- DataSourceIf, javax.xml.transform.Source
public class SolrSource
- extends AbstractStreamSource
JAXP based Source class that can be used to stream the XML response of a Solr
search operation.
- Author:
- Maarten Kroon
Fields inherited from class javax.xml.transform.stream.StreamSource |
FEATURE |
Constructor Summary |
SolrSource(org.w3c.dom.Element configElem)
|
Method Summary |
java.lang.String |
getDefaultFieldName()
Returns the name of the Solr schema field that is retrieved when no
explicit name is specified. |
java.io.Reader |
getInternalReader()
|
java.lang.String |
getSourceFieldName()
Returns the name of the Solr schema field that contains the name of the
source. |
java.lang.String |
getUniqueKeyFieldName()
Returns the name of the unique field in the Solr schema. |
java.lang.String |
getUri()
Returns the uri of the Solr core. |
Methods inherited from class com.armatiek.infofuze.source.AbstractStreamSource |
afterStreamClosed, close, destroy, getName, getReader, getTransformId, getTransformMode, isAutoReturning, isOpen, open, reset, setAutoReturning, setParameters, setTransformId, setTransformMode |
Methods inherited from class javax.xml.transform.stream.StreamSource |
getInputStream, getPublicId, getSystemId, setInputStream, setPublicId, setReader, setSystemId, setSystemId |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SolrSource
public SolrSource(org.w3c.dom.Element configElem)
getInternalReader
public java.io.Reader getInternalReader()
getUri
public java.lang.String getUri()
- Returns the uri of the Solr core.
getUniqueKeyFieldName
public java.lang.String getUniqueKeyFieldName()
- Returns the name of the unique field in the Solr schema.
getSourceFieldName
public java.lang.String getSourceFieldName()
- Returns the name of the Solr schema field that contains the name of the
source.
getDefaultFieldName
public java.lang.String getDefaultFieldName()
- Returns the name of the Solr schema field that is retrieved when no
explicit name is specified.