org.gcube.indexmanagement.geoindexlookup
Class GeoIndexLookupSearchWorker

java.lang.Object
  extended by java.lang.Thread
      extended by org.gcube.indexmanagement.geoindexlookup.GeoIndexLookupSearchWorker
All Implemented Interfaces:
java.lang.Runnable

public class GeoIndexLookupSearchWorker
extends java.lang.Thread

A worker thread used to retrieve results and build the resulting ResultSet.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GeoIndexLookupSearchWorker(java.util.Vector<RTreeWrapper> index, java.lang.String collectionID, java.lang.String language, Polygon queryShape, InclusionType containment, Refiner[] refiners, RankEvaluator ranker, MergeSortPipe pipe, int workerID, boolean flowControlled, GeoIndexType indexType, int numberOfDecimals, boolean isComplete, java.io.RandomAccessFile raf, java.util.LinkedHashMap<java.lang.String,java.lang.String> projections)
          GeoIndexLookupSearchWorker's Constructor.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoIndexLookupSearchWorker

public GeoIndexLookupSearchWorker(java.util.Vector<RTreeWrapper> index,
                                  java.lang.String collectionID,
                                  java.lang.String language,
                                  Polygon queryShape,
                                  InclusionType containment,
                                  Refiner[] refiners,
                                  RankEvaluator ranker,
                                  MergeSortPipe pipe,
                                  int workerID,
                                  boolean flowControlled,
                                  GeoIndexType indexType,
                                  int numberOfDecimals,
                                  boolean isComplete,
                                  java.io.RandomAccessFile raf,
                                  java.util.LinkedHashMap<java.lang.String,java.lang.String> projections)
GeoIndexLookupSearchWorker's Constructor.

Parameters:
index - Vector - the index to query
collectionID - String - the collection ID of the index
queryShape - Polygon - the shape of the spatial query
containment - InclusionType - the containment method of the query
refiners - Refiner[] - a list of refiners to be used
ranker - RankEvaluator - the rank evaluator to be used for ranking and sorting
rsWriter - RSXMLWriter - the RSXMLWriter to use for writing results
indexType - GeoIndexType - the GeoIndexType of the index
numberOfDecimals - int - the Number Of Decimals used in the index
resource - GeoIndexLookupResource - the GeoIndexLookupResource which spawned this worker deamon
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread