org.galagosearch.core.retrieval.structured
Class StructuredRetrieval
java.lang.Object
org.galagosearch.core.retrieval.Retrieval
org.galagosearch.core.retrieval.structured.StructuredRetrieval
public class StructuredRetrieval
- extends Retrieval
- Author:
- trevor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StructuredRetrieval
public StructuredRetrieval(StructuredIndex index)
StructuredRetrieval
public StructuredRetrieval(java.lang.String filename)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
getArrayResults
public ScoredDocument[] getArrayResults(java.util.PriorityQueue<ScoredDocument> scores)
getNodeType
public NodeType getNodeType(Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
createIterator
public StructuredIterator createIterator(Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
transformQuery
public Node transformQuery(Node queryTree)
throws java.lang.Exception
- Description copied from class:
Retrieval
- Transforms the query into a more complete representation that can
be directly executed.
- Specified by:
transformQuery in class Retrieval
- Throws:
java.lang.Exception
runQuery
public ScoredDocument[] runQuery(Node queryTree,
int requested)
throws java.lang.Exception
- Evaluates a query.
- Specified by:
runQuery in class Retrieval
- Parameters:
queryTree - A query tree that has been already transformed with StructuredRetrieval.transformQuery.requested - The number of documents to retrieve, at most.
- Returns:
-
- Throws:
java.lang.Exception
getDocumentName
public java.lang.String getDocumentName(int document)
- Specified by:
getDocumentName in class Retrieval
close
public void close()
throws java.io.IOException
- Specified by:
close in class Retrieval
- Throws:
java.io.IOException
Copyright © 2009. All Rights Reserved.