org.galagosearch.core.retrieval
Class Retrieval

java.lang.Object
  extended by org.galagosearch.core.retrieval.Retrieval
Direct Known Subclasses:
StructuredRetrieval

public abstract class Retrieval
extends java.lang.Object

This is a base class for all kinds of retrieval classes. Historically this was used to support binned indexes in addition to structured indexes.

Author:
trevor

Constructor Summary
Retrieval()
           
 
Method Summary
abstract  void close()
           
abstract  java.lang.String getDocumentName(int document)
           
static Retrieval instance(java.lang.String indexPath)
           
abstract  ScoredDocument[] runQuery(Node query, int requested)
           
abstract  Node transformQuery(Node query)
          Transforms the query into a more complete representation that can be directly executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Retrieval

public Retrieval()
Method Detail

getDocumentName

public abstract java.lang.String getDocumentName(int document)
                                          throws java.io.IOException
Throws:
java.io.IOException

transformQuery

public abstract Node transformQuery(Node query)
                             throws java.lang.Exception
Transforms the query into a more complete representation that can be directly executed.

Throws:
java.lang.Exception

runQuery

public abstract ScoredDocument[] runQuery(Node query,
                                          int requested)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

close

public abstract void close()
                    throws java.io.IOException
Throws:
java.io.IOException

instance

public static Retrieval instance(java.lang.String indexPath)
                          throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.