org.intermine.bio.postprocess
Class BiosegIndexTask

java.lang.Object
  extended by org.intermine.bio.postprocess.BiosegIndexTask

public class BiosegIndexTask
extends java.lang.Object

A task to create a bioseg GIST index on the location table to help with overlap queries.


Field Summary
protected  ObjectStoreWriterInterMineImpl osw
           
 
Constructor Summary
BiosegIndexTask(ObjectStoreWriter osw)
          Construct a new BiosegIndexTask that will change the given object store.
 
Method Summary
 void createIndex()
          Create a bioseg index on the location table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

osw

protected ObjectStoreWriterInterMineImpl osw
Constructor Detail

BiosegIndexTask

public BiosegIndexTask(ObjectStoreWriter osw)
Construct a new BiosegIndexTask that will change the given object store.

Parameters:
osw - an ObjectStore to write to
Method Detail

createIndex

public void createIndex()
                 throws java.sql.SQLException
Create a bioseg index on the location table.

Throws:
java.sql.SQLException - if there is a problem dropping the tabe or creating the view