public abstract class GraphSearcher extends AbstractSearcher
Modifier and Type | Field and Description |
---|---|
protected DBGraphSearchCriteria |
_dbGraphSearchCriteria
The search criteria for graph pattern matching that are input by the
user.
|
_currentResults, _dbConnection, _errorModels, _isIndependent, _nextResultHandler, _previousResults
Constructor and Description |
---|
GraphSearcher() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_isSearchCriteriaSet()
Checks whether the graph search criteria has been set in
this graph searcher instance.
|
static java.util.ArrayList<GraphSearcher> |
getGraphSearcher(SearchCriteria searchCriteria)
A factory which returns the concrete GraphSearcher objects
according to the complexity of the search criteria from the user.
|
_addErrorModel, _isFirstSearcher, _isIndependent, _isIntersectNeeded, _isLastSeacher, _pass, _search, handleIntermediateResults, handleResults, isPassed, isSearchCancelled, noIntersect, passErrorModels, setConnection, setFirstSearcher, setLastSearcher, setNextResultHandler, setPreviousSeacher, wholeSearchDone
protected DBGraphSearchCriteria _dbGraphSearchCriteria
public static java.util.ArrayList<GraphSearcher> getGraphSearcher(SearchCriteria searchCriteria)
Different graph searcher has different capability to perform the graph pattern match search. The original design is that this factory method will return the appropriate searchers according to the given graph pattern search criteria.
For now, due to the limitation of searching patterns in the database, this factory will anyway construct both XQueryGraphSearcher and PatternMatchGraphSearcher, and return both of them in a list. The first searcher in the list will be the instance of the XQueryGraphSearcher, and the second will be PatternMatchGraphSearcher.
searchCriteria
- The search criteria input by the user.protected boolean _isSearchCriteriaSet()
_isSearchCriteriaSet
in class AbstractSearcher