org.galagosearch.core.retrieval.traversal
Class ImplicitFeatureCastTraversal

java.lang.Object
  extended by org.galagosearch.core.retrieval.traversal.ImplicitFeatureCastTraversal
All Implemented Interfaces:
Traversal

public class ImplicitFeatureCastTraversal
extends java.lang.Object
implements Traversal

For many kinds of queries, it may be preferable to not have to type an explicit #feature operator around a count or extents term. For example, we want #combine(#feature:dirichlet(#counts:dog())) to be the same as #combine(dog). This transformation automatically adds the #feature:dirichlet operator.

Author:
trevor

Constructor Summary
ImplicitFeatureCastTraversal(StructuredRetrieval retrieval)
           
 
Method Summary
 Node afterNode(Node node)
           
 void beforeNode(Node node)
           
 boolean isCountNode(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplicitFeatureCastTraversal

public ImplicitFeatureCastTraversal(StructuredRetrieval retrieval)
Method Detail

isCountNode

public boolean isCountNode(Node node)
                    throws java.lang.Exception
Throws:
java.lang.Exception

beforeNode

public void beforeNode(Node node)
                throws java.lang.Exception
Specified by:
beforeNode in interface Traversal
Throws:
java.lang.Exception

afterNode

public Node afterNode(Node node)
               throws java.lang.Exception
Specified by:
afterNode in interface Traversal
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.