Uses of Class
org.apache.solr.handler.dataimport.DataSource

Packages that use DataSource
org.apache.solr.handler.dataimport   
 

Uses of DataSource in org.apache.solr.handler.dataimport
 

Subclasses of DataSource in org.apache.solr.handler.dataimport
 class ContentStreamDataSource
          A DataSource implementation which reads from the ContentStream of a POST request

Refer to http://wiki.apache.org/solr/DataImportHandler for more details.

 class FieldReaderDataSource
          This can be useful for users who have a DB field containing xml and wish to use a nested XPathEntityProcessor

The datasouce may be configured as follows

The enity which uses this datasource must keep the url value as the varaible name url="field-name"

The fieldname must be resolvable from VariableResolver

This may be used with any EntityProcessor which uses a DataSource eg:XPathEntityProcessor

Supports String, BLOB, CLOB data types and there is an extra field (in the entity) 'encoding' for BLOB types

 class FileDataSource
           A DataSource which reads from local files
 class HttpDataSource
          Deprecated. use URLDataSource instead
 class JdbcDataSource
           A DataSource implementation which can fetch data using JDBC.
 class MockDataSource
           A mock DataSource implementation which can be used for testing.
 class URLDataSource
           A data source implementation which can be used to read character files using HTTP.
 

Fields in org.apache.solr.handler.dataimport declared as DataSource
protected  DataSource<Reader> XPathEntityProcessor.dataSource
           
protected  DataSource<Iterator<Map<String,Object>>> SqlEntityProcessor.dataSource
           
 DataSource DataConfig.Entity.dataSrc
           
 

Methods in org.apache.solr.handler.dataimport that return DataSource
abstract  DataSource Context.getDataSource()
          Gets the datasource instance defined for this entity.
 DataSource ContextImpl.getDataSource()
           
abstract  DataSource Context.getDataSource(String name)
          Gets a new DataSource instance with a name.
 DataSource ContextImpl.getDataSource(String name)
           
 

Methods in org.apache.solr.handler.dataimport with parameters of type DataSource
static org.apache.solr.handler.dataimport.AbstractDataImportHandlerTest.TestContext AbstractDataImportHandlerTest.getContext(DataConfig.Entity parentEntity, VariableResolverImpl resolver, DataSource parentDataSource, String currProcess, List<Map<String,String>> entityFields, Map<String,String> entityAttrs)
          Helper for creating a Context instance.
 

Constructors in org.apache.solr.handler.dataimport with parameters of type DataSource
ContextImpl(DataConfig.Entity entity, VariableResolverImpl resolver, DataSource ds, String currProcess, Map<String,Object> global, ContextImpl parentContext, DocBuilder docBuilder)
           
 



Copyright © 2011 Apache Software Foundation. All Rights Reserved.