|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.handler.dataimport.DataSource<Reader> org.apache.solr.handler.dataimport.ContentStreamDataSource
public 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. This API is experimental and may change in the future.
Constructor Summary | |
---|---|
ContentStreamDataSource()
|
Method Summary | |
---|---|
void |
close()
Cleans up resources of this DataSource after use. |
Reader |
getData(String query)
Get records for the given query.The return type depends on the implementation . |
void |
init(Context context,
Properties initProps)
Initializes the DataSource with the Context and
initialization properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentStreamDataSource()
Method Detail |
---|
public void init(Context context, Properties initProps)
DataSource
Context
and
initialization properties.
This is invoked by the DataImporter
after creating an
instance of this class.
init
in class DataSource<Reader>
public Reader getData(String query)
DataSource
getData
in class DataSource<Reader>
query
- The query string. It can be a SQL for JdbcDataSource or a URL
for HttpDataSource or a file location for FileDataSource or a custom
format for your own custom DataSource.
public void close()
DataSource
close
in class DataSource<Reader>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |