public final class LocalSearchHints extends java.lang.Object implements IMatcherCapability
Modifier and Type | Method and Description |
---|---|
QueryEvaluationHint |
build() |
QueryEvaluationHint |
build(QueryEvaluationHint overridingHint) |
boolean |
canBeSubstitute(IMatcherCapability capability)
Returns true if matchers of this capability can be used as a substitute for a matcher implementing the given capability
|
static LocalSearchHints |
customizeAdornmentProvider(IAdornmentProvider adornmentProvider) |
static LocalSearchHints |
customizeAllowInverse(boolean allowInverse)
Deprecated.
This allowInverse hint is ignored by the runtime, do not use it
|
static LocalSearchHints |
customizeCostFunction(ICostFunction costFunction) |
static LocalSearchHints |
customizeFlattenCallPredicate(IFlattenCallPredicate predicate) |
static LocalSearchHints |
customizeRowCount(int rowCount) |
static LocalSearchHints |
customizeTraceCollector(IRewriterTraceCollector traceCollector) |
static LocalSearchHints |
customizeUseBase(boolean useBase) |
IAdornmentProvider |
getAdornmentProvider() |
ICostFunction |
getCostFunction() |
static LocalSearchHints |
getDefault()
Default settings which are considered the most safe, providing a reasonable performance for most of the cases.
|
static LocalSearchHints |
getDefaultFlatten()
With this setting, the patterns are flattened before planning.
|
static LocalSearchHints |
getDefaultGeneric()
Initializes the generic (not EMF specific) search backend with the default settings
|
static LocalSearchHints |
getDefaultNoBase()
Settings to be used when the base index is not available.
|
static LocalSearchHints |
getDefaultOverriddenBy(QueryEvaluationHint overridingHint)
Return the default settings overridden by the given hints
|
IFlattenCallPredicate |
getFlattenCallPredicate() |
java.lang.Integer |
getRowCount() |
IRewriterTraceCollector |
getTraceCollector() |
java.lang.Boolean |
isAllowInverse()
Deprecated.
allow inverse was deprecated in 1.4; its uses are ignored
|
boolean |
isUseBase() |
static LocalSearchHints |
parse(QueryEvaluationHint hint) |
LocalSearchHints |
setAdornmentProvider(IAdornmentProvider adornmentProvider) |
LocalSearchHints |
setAllowInverse(boolean allowInverse)
Deprecated.
allow inverse was deprecated in 1.4; its uses are ignored
|
LocalSearchHints |
setCostFunction(ICostFunction costFunction) |
LocalSearchHints |
setFlattenCallPredicate(IFlattenCallPredicate flattenCallPredicate) |
LocalSearchHints |
setRowCount(int rowCount) |
LocalSearchHints |
setTraceCollector(IRewriterTraceCollector traceCollector) |
LocalSearchHints |
setUseBase(boolean useBase) |
public static LocalSearchHints getDefaultOverriddenBy(QueryEvaluationHint overridingHint)
public static LocalSearchHints getDefault()
public static LocalSearchHints getDefaultFlatten()
getDefault()
settings,
However this should be used with care for patterns containing calls with several bodies.public static LocalSearchHints getDefaultNoBase()
public static LocalSearchHints getDefaultGeneric()
public static LocalSearchHints parse(QueryEvaluationHint hint)
public QueryEvaluationHint build()
public QueryEvaluationHint build(QueryEvaluationHint overridingHint)
public boolean isUseBase()
@Deprecated public java.lang.Boolean isAllowInverse()
public ICostFunction getCostFunction()
public IFlattenCallPredicate getFlattenCallPredicate()
public java.lang.Integer getRowCount()
public IAdornmentProvider getAdornmentProvider()
public IRewriterTraceCollector getTraceCollector()
@Deprecated public LocalSearchHints setAllowInverse(boolean allowInverse)
public LocalSearchHints setUseBase(boolean useBase)
public LocalSearchHints setRowCount(int rowCount)
public LocalSearchHints setCostFunction(ICostFunction costFunction)
public LocalSearchHints setFlattenCallPredicate(IFlattenCallPredicate flattenCallPredicate)
public LocalSearchHints setTraceCollector(IRewriterTraceCollector traceCollector)
public LocalSearchHints setAdornmentProvider(IAdornmentProvider adornmentProvider)
public static LocalSearchHints customizeUseBase(boolean useBase)
@Deprecated public static LocalSearchHints customizeAllowInverse(boolean allowInverse)
public static LocalSearchHints customizeRowCount(int rowCount)
public static LocalSearchHints customizeCostFunction(ICostFunction costFunction)
public static LocalSearchHints customizeFlattenCallPredicate(IFlattenCallPredicate predicate)
public static LocalSearchHints customizeAdornmentProvider(IAdornmentProvider adornmentProvider)
public static LocalSearchHints customizeTraceCollector(IRewriterTraceCollector traceCollector)
public boolean canBeSubstitute(IMatcherCapability capability)
IMatcherCapability
canBeSubstitute
in interface IMatcherCapability