Interface MACFACQuery
- All Superinterfaces:
Query
- All Known Implementing Classes:
MACFACQueryImpl
A MACFAC query needs additional parameters compared to a standard retrieval query.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default value for the number of items, which should be communicated between MAC and FAC stage.static final double
The default value for the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.Fields inherited from interface de.uni_trier.wi2.procake.retrieval.Query
DEFAULT_MINSIMILARITY, DEFAULT_NUMBEROFRESULTS, DEFAULT_RETRIEVECASES
-
Method Summary
Modifier and TypeMethodDescriptionReturns the FAC-query if a FAC-query was set beforeint
Gets the current set number of items, which should be communicated between MAC and FAC stage.double
Gets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.void
setFacQuery
(Query facQuery) Sets the FAC-query of the MACFAC-queryvoid
setFilterSize
(int size) Sets the number of items, which should be communicated between MAC and FAC stage.void
setMinMACSimilarity
(double minMACSimilarity) Sets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.Methods inherited from interface de.uni_trier.wi2.procake.retrieval.Query
fromXML, getMinSimilarity, getNumberOfResults, getQueryObject, isRetrieveCases, setMinSimilarity, setNumberOfResults, setQueryObject, setRetrieveCases, toXML, toXML
-
Field Details
-
DEFAULT_FILTER_SIZE
static final int DEFAULT_FILTER_SIZEThe default value for the number of items, which should be communicated between MAC and FAC stage. Value is 10.- See Also:
-
DEFAULT_MIN_MAC_SIMILARITY
static final double DEFAULT_MIN_MAC_SIMILARITYThe default value for the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase. Value is 0.0.- See Also:
-
-
Method Details
-
getFilterSize
int getFilterSize()Gets the current set number of items, which should be communicated between MAC and FAC stage. -
setFilterSize
void setFilterSize(int size) Sets the number of items, which should be communicated between MAC and FAC stage. -
getMinMACSimilarity
double getMinMACSimilarity()Gets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.- Returns:
- the minimum MAC similarity
-
setMinMACSimilarity
void setMinMACSimilarity(double minMACSimilarity) Sets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.- Parameters:
minMACSimilarity
- the minimum MAC similarity
-
setFacQuery
Sets the FAC-query of the MACFAC-query- Parameters:
facQuery
- using FAC-query
-
getFacQuery
Query getFacQuery()Returns the FAC-query if a FAC-query was set before
-