org.galagosearch.core.retrieval.structured
Class FeatureFactory
java.lang.Object
org.galagosearch.core.retrieval.structured.FeatureFactory
public class FeatureFactory
- extends java.lang.Object
- Author:
- trevor
|
Constructor Summary |
FeatureFactory(org.galagosearch.tupleflow.Parameters parameters)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureFactory
public FeatureFactory(org.galagosearch.tupleflow.Parameters parameters)
getClassName
public java.lang.String getClassName(Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
getFeatureClassName
public java.lang.String getFeatureClassName(org.galagosearch.tupleflow.Parameters parameters)
throws java.lang.Exception
- Throws:
java.lang.Exception
getClass
public java.lang.Class<StructuredIterator> getClass(Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNodeType
public NodeType getNodeType(Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
getIterator
public StructuredIterator getIterator(Node node,
java.util.ArrayList<StructuredIterator> childIterators)
throws java.lang.Exception
- Given a query node, generates the corresponding iterator object that can be used
for structured retrieval. This method just calls getClass() on the node,
then instantiates the resulting class.
If the class returned by getClass() is a ScoringFunction, it must contain
a constructor that takes a single Parameters object. If the class returned by
getFeatureClass() is some kind of StructuredIterator (either a ScoreIterator,
ExtentIterator or CountIterator), it must take a Parameters object and an
ArrayList of DocumentDataIterators as parameters.
- Throws:
java.lang.Exception
Copyright © 2009. All Rights Reserved.