Class LocalSearchHints
java.lang.Object
tools.refinery.interpreter.localsearch.matcher.integration.LocalSearchHints
- All Implemented Interfaces:
IMatcherCapability
Type safe builder and extractor for Local search specific hints
- Since:
- 1.4
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
build
(QueryEvaluationHint overridingHint) boolean
canBeSubstitute
(IMatcherCapability capability) static LocalSearchHints
customizeAdornmentProvider
(IAdornmentProvider adornmentProvider) static LocalSearchHints
static LocalSearchHints
customizeCostFunction
(ICostFunction costFunction) static LocalSearchHints
static LocalSearchHints
customizeRowCount
(int rowCount) static LocalSearchHints
customizeTraceCollector
(IRewriterTraceCollector traceCollector) static LocalSearchHints
customizeUseBase
(boolean useBase) static LocalSearchHints
Default settings which are considered the most safe, providing a reasonable performance for most of the cases.static LocalSearchHints
Initializes the generic (not EMF specific) search backend with the default settingsstatic LocalSearchHints
Initializes the generic (not EMF specific) search backend with hybrid-enabled settingsstatic LocalSearchHints
Initializes the default search backend with hybrid-enabled settingsstatic LocalSearchHints
getDefaultOverriddenBy
(QueryEvaluationHint overridingHint) Return the default settings overridden by the given hintsboolean
static LocalSearchHints
parse
(QueryEvaluationHint hint) setAdornmentProvider
(IAdornmentProvider adornmentProvider) setCallDelegationStrategy
(ICallDelegationStrategy callDelegationStrategy) setConsultSurrogates
(boolean consultSurrogates) setCostFunction
(ICostFunction costFunction) setFlattenCallPredicate
(IFlattenCallPredicate flattenCallPredicate) setRowCount
(int rowCount) setTraceCollector
(IRewriterTraceCollector traceCollector) setUseBase
(boolean useBase)
-
Method Details
-
getDefaultOverriddenBy
Return the default settings overridden by the given hints -
getDefault
Default settings which are considered the most safe, providing a reasonable performance for most of the cases. Assumes the availability of the base indexer. -
getDefaultGeneric
Initializes the generic (not EMF specific) search backend with the default settings- Since:
- 1.7
-
getDefaultHybrid
Initializes the default search backend with hybrid-enabled settings- Since:
- 2.1
-
getDefaultGenericHybrid
Initializes the generic (not EMF specific) search backend with hybrid-enabled settings- Since:
- 2.1
-
parse
-
build
-
build
- Since:
- 1.7
-
isConsultSurrogates
- Since:
- 2.9
-
isUseBase
public boolean isUseBase() -
getCostFunction
-
getFlattenCallPredicate
-
getCallDelegationStrategy
- Since:
- 2.1
-
getRowCount
-
getAdornmentProvider
- Since:
- 1.5
-
getTraceCollector
- Since:
- 1.6
-
setConsultSurrogates
- Since:
- 2.9
-
setUseBase
-
setRowCount
-
setCostFunction
-
setFlattenCallPredicate
-
setCallDelegationStrategy
- Since:
- 2.1
-
setTraceCollector
- Since:
- 1.6
-
setAdornmentProvider
- Since:
- 1.5
-
customizeUseBase
-
customizeRowCount
-
customizeCostFunction
-
customizeFlattenCallPredicate
-
customizeCallDelegationStrategy
- Since:
- 2.1
-
customizeAdornmentProvider
- Since:
- 1.5
-
customizeTraceCollector
- Since:
- 1.6
-
canBeSubstitute
- Specified by:
canBeSubstitute
in interfaceIMatcherCapability
-