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 ILocalSearchAdaptable
public void addAdapter(ILocalSearchAdapter adapter)
addAdapter
in interface ILocalSearchAdaptable
public void removeAdapter(ILocalSearchAdapter adapter)
removeAdapter
in interface ILocalSearchAdaptable
public void addAdapters(java.util.List<ILocalSearchAdapter> adapters)
addAdapters
in interface ILocalSearchAdaptable
public void removeAdapters(java.util.List<ILocalSearchAdapter> adapters)
removeAdapters
in interface ILocalSearchAdaptable
protected void setPlan(SearchPlanExecutor plan)
protected void setPlan(SearchPlanExecutor[] plan)
protected void setFramesize(int frameSize)
public MatchingFrame editableMatchingFrame()
public boolean hasMatch() throws LocalSearchException
LocalSearchException
public boolean hasMatch(MatchingFrame initialFrame) throws LocalSearchException
LocalSearchException
public int countMatches() throws LocalSearchException
LocalSearchException
public int countMatches(MatchingFrame initialFrame) throws LocalSearchException
LocalSearchException
public int getParameterCount()
public MatchingFrame getOneArbitraryMatch() throws LocalSearchException
LocalSearchException
public MatchingFrame getOneArbitraryMatch(MatchingFrame initialFrame) throws LocalSearchException
LocalSearchException
public java.util.Collection<Tuple> getAllMatches() throws LocalSearchException
LocalSearchException
public java.util.Collection<Tuple> getAllMatches(MatchingFrame initialFrame) throws LocalSearchException
LocalSearchException
public PQuery getQuerySpecification()
public IPlanDescriptor getPlanDescriptor()