no.sesat.search.run
Class RunningQueryImpl

java.lang.Object
  extended by no.sesat.search.run.AbstractRunningQuery
      extended by no.sesat.search.run.RunningQueryImpl
All Implemented Interfaces:
RunningQuery
Direct Known Subclasses:
RunningWebQuery

public class RunningQueryImpl
extends AbstractRunningQuery
implements RunningQuery

Central controlling class around the individual search commands executed in any query search.

Version:
$Id: RunningQueryImpl.java 7225 2009-04-09 00:32:20Z ssmiweve $

Nested Class Summary
 
Nested classes/interfaces inherited from interface no.sesat.search.run.RunningQuery
RunningQuery.Context
 
Field Summary
protected  boolean allCancelled
          have all search commands been cancelled.
protected  DataModel datamodel
           
protected  TokenEvaluationEngine engine
           
static String PARAM_LAYOUT
           
static String PARAM_LAYOUT_OLD
           
 
Fields inherited from class no.sesat.search.run.AbstractRunningQuery
context
 
Constructor Summary
RunningQueryImpl(RunningQuery.Context cxt, String query)
          Create a new RunningQuery instance.
 
Method Summary
protected  Collection<SearchConfiguration> applicableSearchConfigurations()
          Intentionally overridable.
protected  Map<String,Integer> getHits()
           
 void run()
          Thread run.
 
Methods inherited from class no.sesat.search.run.AbstractRunningQuery
trimDuplicateSpaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_LAYOUT

public static final String PARAM_LAYOUT
See Also:
Constant Field Values

PARAM_LAYOUT_OLD

public static final String PARAM_LAYOUT_OLD
See Also:
Constant Field Values

allCancelled

protected boolean allCancelled
have all search commands been cancelled. implementation details allowing web subclasses to send correct error to client.


datamodel

protected final DataModel datamodel

engine

protected final TokenEvaluationEngine engine
Constructor Detail

RunningQueryImpl

public RunningQueryImpl(RunningQuery.Context cxt,
                        String query)
                 throws SiteKeyedFactoryInstantiationException
Create a new RunningQuery instance.

Parameters:
cxt -
query -
Throws:
SiteKeyedFactoryInstantiationException
Method Detail

run

public void run()
         throws InterruptedException
Thread run. Guts of the logic behind this class. XXX long method. Divide & Conquer.

Specified by:
run in interface RunningQuery
Throws:
InterruptedException

getHits

protected Map<String,Integer> getHits()
Returns:

applicableSearchConfigurations

protected Collection<SearchConfiguration> applicableSearchConfigurations()
Intentionally overridable. Would be nice if run-transform-spi could have influence on the result here.

Returns:
collection of SearchConfigurations applicable to this running query.


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.