|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the interface for various Indexers.
The AbstractIndexer class provides a barebones implementation of this interface. Your indexers should inherit AbstractIndexer.
AbstractIndexer
Method Summary | |
void |
add(Entry entry)
Adds an entry in the index. |
Collector |
getCollector()
Gets the Collector partner. |
Configuration |
getConfiguration()
Returns the Configuration used by this Indexer. |
Repository |
getRepository()
Returns the Repository used by this Indexer. |
void |
init(Configuration c)
Initialises the Indexer if an empty constructor was used. |
void |
process(java.io.InputStream in,
java.lang.String uri)
Indexes the data in the InputStream. |
void |
setCollector(Collector c)
Sets the Collector partner. |
void |
setConfiguration(Configuration c)
Sets the Configuration used by this Indexer. |
void |
start()
Starts the indexing process. |
Method Detail |
public void init(Configuration c) throws java.io.IOException
public void setCollector(Collector c)
public Collector getCollector()
public void setConfiguration(Configuration c) throws java.io.IOException
public Configuration getConfiguration()
public Repository getRepository()
public void add(Entry entry)
public void start() throws java.io.IOException
public void process(java.io.InputStream in, java.lang.String uri) throws java.io.IOException
The Collector partner must provide the Indexer with two arguments: the InputStream from which the data can be read as well as a URI that will be entered in the index.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |