public class LocalSearchMatcher extends java.lang.Object implements ILocalSearchAdaptable
| Modifier | Constructor and Description |
|---|---|
protected |
LocalSearchMatcher(IPlanDescriptor query)
If a descendant initializes a matcher using the default constructor, it is expected that it also calls the
setPlan(SearchPlanExecutor) and setFramesize(int) methods manually. |
|
LocalSearchMatcher(IPlanDescriptor planDescriptor,
java.util.Collection<SearchPlanExecutor> plan,
int frameSize) |
protected |
LocalSearchMatcher(IPlanDescriptor planDescriptor,
com.google.common.collect.ImmutableList<SearchPlanExecutor> plan,
int frameSize) |
|
LocalSearchMatcher(IPlanDescriptor planDescriptor,
SearchPlanExecutor[] plan,
int frameSize) |
|
LocalSearchMatcher(IPlanDescriptor planDescriptor,
SearchPlanExecutor plan,
int frameSize) |
protected LocalSearchMatcher(IPlanDescriptor query)
setPlan(SearchPlanExecutor) and setFramesize(int) methods manually.public LocalSearchMatcher(IPlanDescriptor planDescriptor, SearchPlanExecutor plan, int frameSize)
public LocalSearchMatcher(IPlanDescriptor planDescriptor, SearchPlanExecutor[] plan, int frameSize)
public LocalSearchMatcher(IPlanDescriptor planDescriptor, java.util.Collection<SearchPlanExecutor> plan, int frameSize)
protected LocalSearchMatcher(IPlanDescriptor planDescriptor, com.google.common.collect.ImmutableList<SearchPlanExecutor> plan, int frameSize)
public com.google.common.collect.ImmutableList<SearchPlanExecutor> getPlan()
public int getFrameSize()
public java.util.List<ILocalSearchAdapter> getAdapters()
getAdapters in interface ILocalSearchAdaptablepublic void addAdapter(ILocalSearchAdapter adapter)
addAdapter in interface ILocalSearchAdaptablepublic void removeAdapter(ILocalSearchAdapter adapter)
removeAdapter in interface ILocalSearchAdaptablepublic void addAdapters(java.util.List<ILocalSearchAdapter> adapters)
addAdapters in interface ILocalSearchAdaptablepublic void removeAdapters(java.util.List<ILocalSearchAdapter> adapters)
removeAdapters in interface ILocalSearchAdaptableprotected void setPlan(SearchPlanExecutor plan)
protected void setPlan(SearchPlanExecutor[] plan)
protected void setFramesize(int frameSize)
public MatchingFrame editableMatchingFrame()
public boolean hasMatch()
throws LocalSearchException
LocalSearchExceptionpublic boolean hasMatch(MatchingFrame initialFrame) throws LocalSearchException
LocalSearchExceptionpublic int countMatches()
throws LocalSearchException
LocalSearchExceptionpublic int countMatches(MatchingFrame initialFrame) throws LocalSearchException
LocalSearchExceptionpublic int getParameterCount()
public MatchingFrame getOneArbitraryMatch() throws LocalSearchException
LocalSearchExceptionpublic MatchingFrame getOneArbitraryMatch(MatchingFrame initialFrame) throws LocalSearchException
LocalSearchExceptionpublic java.util.Collection<Tuple> getAllMatches() throws LocalSearchException
LocalSearchExceptionpublic java.util.Collection<Tuple> getAllMatches(MatchingFrame initialFrame) throws LocalSearchException
LocalSearchExceptionpublic PQuery getQuerySpecification()
public IPlanDescriptor getPlanDescriptor()