|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lempinen.neatseeker.core.AbstractIndexer
An abstract class for building NeatSeeker indexers.
This class works together with a Collector to index a set of URLs
(local or networked). The start
method starts the
collection process, effectively passing the control of the execution to
the Collector partner. The Collector calls back the process
for every URL to index.
Field Summary | |
protected java.io.ByteArrayOutputStream |
cache
The internal cache for holding the data to be indexed. |
protected Collector |
collector
The Collector partner. |
protected Configuration |
conf
The configuration object. |
protected boolean |
lowerCase
Lowercase indexing on/off. |
protected Repository |
repository
The repository object. |
protected Statistics |
statistics
The Statistics object for storing metainformation about the index. |
protected StopWordList |
stoplist
The StopWordList object |
Constructor Summary | |
AbstractIndexer()
Creates an empty Indexer. |
|
AbstractIndexer(Configuration c)
Creates a new Indexer with the given configuration. |
Method Summary | |
void |
add(Entry entry)
Adds an entry in the index, with stopword checking if enabled. |
void |
createCache(java.io.InputStream in)
Creates a cache of from an InputStream. |
java.io.InputStream |
getCache()
Returns the cache as an InputStream. |
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 the empty constructor was used. |
void |
setCollector(Collector coll)
Sets the Collector partner. |
void |
setConfiguration(Configuration c)
Sets the Configuration used by this Indexer. |
void |
start()
Starts the indexing process. |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface lempinen.neatseeker.core.Indexer |
process |
Field Detail |
protected Repository repository
protected Configuration conf
protected Collector collector
protected Statistics statistics
protected boolean lowerCase
protected StopWordList stoplist
protected java.io.ByteArrayOutputStream cache
Constructor Detail |
public AbstractIndexer()
public AbstractIndexer(Configuration c) throws java.io.IOException
Method Detail |
public void init(Configuration c) throws java.io.IOException
init
in interface Indexer
public void start() throws java.io.IOException
start
in interface Indexer
public void createCache(java.io.InputStream in) throws java.io.IOException
public java.io.InputStream getCache()
public void setCollector(Collector coll)
Indexer
setCollector
in interface Indexer
public Collector getCollector()
Indexer
getCollector
in interface Indexer
public void setConfiguration(Configuration c)
Indexer
setConfiguration
in interface Indexer
public Configuration getConfiguration()
Indexer
getConfiguration
in interface Indexer
public Repository getRepository()
Indexer
getRepository
in interface Indexer
public void add(Entry entry)
add
in interface Indexer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |