thinkmap.datasource.flatfile2
Class Indexer
java.lang.Object
thinkmap.datasource.flatfile2.Indexer
public class Indexer
- extends Object
|
Method Summary |
void |
cancel()
|
protected void |
deleteOldTypes(org.apache.lucene.index.IndexWriter writer)
Deletes old entity types that may exist in the index but may not actually
be used anymore based on the current FlatFileDatasources entity models. |
protected boolean |
index(boolean create)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ds
protected FlatFileDataSource ds
Indexer
public Indexer(FlatFileDataSource ds)
cancel
public void cancel()
index
protected boolean index(boolean create)
throws IOException
- Throws:
IOException
deleteOldTypes
protected void deleteOldTypes(org.apache.lucene.index.IndexWriter writer)
throws IOException
- Deletes old entity types that may exist in the index but may not actually
be used anymore based on the current FlatFileDatasources entity models.
For instance, if a user removes an entity model entirely, we need to query
the index to make sure it is no longer stored or else the datasource will
send stale data back to clients.
- Parameters:
writer - searcher -
- Throws:
Exception
IOException
Copyright © 2013 Thinkmap, Inc. All Rights Reserved.