public class SpatialHarvester
extends java.lang.Object
Constructor and Description |
---|
SpatialHarvester()
constructor to initialize db connection
|
Modifier and Type | Method and Description |
---|---|
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<java.lang.String> |
queryAllDocids()
Returns a Vector of all the current versions of public docids
|
void |
regenerate()
Completely regenerates the spatial cache.
|
public SpatialHarvester()
public void destroy()
protected java.util.Vector<java.lang.String> 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
Copyright © 2020 Regents of the University of California. All Rights Reserved.