org.usergrid.persistence.query.ir
Class SearchVisitor
java.lang.Object
org.usergrid.persistence.query.ir.SearchVisitor
- All Implemented Interfaces:
- NodeVisitor
public abstract class SearchVisitor
- extends Object
- implements NodeVisitor
Simple search visitor that performs all the joining in memory for results.
Subclasses will want to implement visiting SliceNode and WithinNode to actually perform the search on the
Cassandra indexes. This class can perform joins on all index entries that conform to the Results object
- Author:
- tnine
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
query
protected Query query
queryProcessor
protected QueryProcessor queryProcessor
results
protected Stack<Results> results
SearchVisitor
public SearchVisitor(Query query,
QueryProcessor queryProcessor)
- Parameters:
query
-
getResults
public Results getResults()
- Return the results if they exist, null otherwise
- Returns:
visit
public void visit(AndNode node)
throws Exception
- Specified by:
visit
in interface NodeVisitor
- Throws:
Exception
visit
public void visit(NotNode node)
throws Exception
- Specified by:
visit
in interface NodeVisitor
- Throws:
Exception
visit
public void visit(OrNode node)
throws Exception
- Specified by:
visit
in interface NodeVisitor
- Throws:
Exception
Copyright © 2013. All Rights Reserved.