org.galagosearch.core.retrieval
Class Retrieval
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Retrieval
public Retrieval()
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.