thinkmap.datasource.flatfile2
Class Indexer

java.lang.Object
  extended by thinkmap.datasource.flatfile2.Indexer

public class Indexer
extends Object


Field Summary
protected  FlatFileDataSource ds
           
 
Constructor Summary
Indexer(FlatFileDataSource ds)
           
 
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
 

Field Detail

ds

protected FlatFileDataSource ds
Constructor Detail

Indexer

public Indexer(FlatFileDataSource ds)
Method Detail

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.