|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.spatial.SpatialHarvester
public class SpatialHarvester
Harvests spatial data from metacat database and saves to persistent cache
| Constructor Summary | |
|---|---|
SpatialHarvester()
constructor to initialize db connection |
|
| Method Summary | |
|---|---|
void |
addToDeleteQue(java.lang.String docid)
Delete a given document from spatial cache. |
void |
addToUpdateQue(java.lang.String docid)
Currently just a wrapper around the harvestDocument method. |
void |
deleteDocument(java.lang.String docid)
Given a docid, will attempt to delete it from spatial cache |
void |
destroy()
Closes the database connection. |
void |
harvestDocument(java.lang.String docid)
Given a new or updated docid, will update the spatial cache accordingly. |
protected java.util.Vector |
queryAllDocids()
Returns a Vector of all the docids in the xml_path_index tables |
void |
regenerate()
Completely regenerates the spatial cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpatialHarvester()
| Method Detail |
|---|
public void destroy()
protected java.util.Vector queryAllDocids()
public void addToUpdateQue(java.lang.String docid)
docid - The docid to be added to the spatial cache.public void addToDeleteQue(java.lang.String docid)
docid - The docid to be deleted from the spatial cache.public void deleteDocument(java.lang.String docid)
docid - The docid to be deleted from the spatial cache.public void harvestDocument(java.lang.String docid)
docid - The docid to be updated or inserted into the spatial cache.
public void regenerate()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||