org.vfny.geoserver.zserver
Class GeoIndexer

java.lang.Object
  extended byorg.vfny.geoserver.zserver.GeoIndexer

public class GeoIndexer
extends java.lang.Object

Performs the indexing of the documents. The Properties files passed in should have the values 'database' (where the index to be written to is stored) 'datafolder' (where the metadata folders are stored) and 'fieldmap' (where the mapping of use attribute numbers to xpaths is). This class has one public function, update, which checks if there are new or modified files in the datafolder, and if so runs the indexer on them.


Constructor Summary
GeoIndexer(java.util.Properties serverProps)
          Constructor to initializes indexer.
 
Method Summary
 int numDocs()
           
 int update()
          Checks the last modified times of the files in the datafolder, and if they've changed or there are new folders this adds them to the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoIndexer

public GeoIndexer(java.util.Properties serverProps)
Constructor to initializes indexer.

Parameters:
serverProps - should contain datafolder, fieldmap and database keys.
Method Detail

update

public int update()
Checks the last modified times of the files in the datafolder, and if they've changed or there are new folders this adds them to the index.

Returns:
the number of documents run through the indexer.

numDocs

public int numDocs()