Interface Query
-
- All Known Subinterfaces:
DependencyQuery,MACFACQuery
- All Known Implementing Classes:
DependencyQueryImpl,MACFACQueryImpl,QueryImpl
public interface QueryDescription of a query to be used inRetriever.perform(Query). A query object can be created usingRetriever.newQuery().- Author:
- Rainer Maximini
- See Also:
Retriever
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_MINSIMILARITYThe default minimum similarity value aRetrievalResultmust have, value is 0.0 .static intDEFAULT_NUMBEROFRESULTSThe default maximum number of results in theRetrievalResultList, value is 10 .static booleanDEFAULT_RETRIEVECASESThe default setting forisRetrieveCases()is false .
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QueryImplfromXML(String queryXML)Converts a serialized Query-XML into a Query-objectdoublegetMinSimilarity()intgetNumberOfResults()<T extends DataObject>
TgetQueryObject()booleanisRetrieveCases()voidsetMinSimilarity(double minSim)voidsetNumberOfResults(int number)voidsetQueryObject(DataObject queryObject)voidsetRetrieveCases(boolean retrieveCases)StringtoXML()Converts full Query to XMLStringtoXML(HashMap<Class,List<String>> toOmit)Converts Query to XML, ignoring the fields specified in toOmit
-
-
-
Field Detail
-
DEFAULT_MINSIMILARITY
static final double DEFAULT_MINSIMILARITY
The default minimum similarity value aRetrievalResultmust have, value is 0.0 .- See Also:
- Constant Field Values
-
DEFAULT_NUMBEROFRESULTS
static final int DEFAULT_NUMBEROFRESULTS
The default maximum number of results in theRetrievalResultList, value is 10 .- See Also:
- Constant Field Values
-
DEFAULT_RETRIEVECASES
static final boolean DEFAULT_RETRIEVECASES
The default setting forisRetrieveCases()is false .- See Also:
- Constant Field Values
-
-
Method Detail
-
getMinSimilarity
double getMinSimilarity()
-
setMinSimilarity
void setMinSimilarity(double minSim)
-
getNumberOfResults
int getNumberOfResults()
-
setNumberOfResults
void setNumberOfResults(int number)
-
getQueryObject
<T extends DataObject> T getQueryObject()
-
setQueryObject
void setQueryObject(DataObject queryObject)
-
isRetrieveCases
boolean isRetrieveCases()
-
setRetrieveCases
void setRetrieveCases(boolean retrieveCases)
-
toXML
String toXML()
Converts full Query to XML- Returns:
- XML String
-
toXML
String toXML(HashMap<Class,List<String>> toOmit)
Converts Query to XML, ignoring the fields specified in toOmit- Parameters:
toOmit- HashMap that contains classes as a key and a corresponding list of fields that should be ignored in the particular class- Returns:
- XML String
-
-