Class QueryNearest
java.lang.Object
ghidra.features.bsim.query.protocol.BSimQuery<ResponseNearest>
ghidra.features.bsim.query.protocol.QueryNearest
Query nearest matches within database to a set of functions
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe default value for the maximum number of similar functions to return for a given input functionstatic final doubleThe default value for the significance threshold.static final doubleThe default value for the similarity threshold.booleanintdoubledoubleint
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidrestoreXml(XmlPullParser parser, LSHVectorFactory vectorFactory) voidMethods inherited from class ghidra.features.bsim.query.protocol.BSimQueryclearResponse, execute, getName, getResponse, restoreQuery
- 
Field Details- 
DEFAULT_SIMILARITY_THRESHOLDpublic static final double DEFAULT_SIMILARITY_THRESHOLDThe default value for the similarity threshold. This threshold is for how similar the potential function is. This is a value from 0.0 to 1.0.- See Also:
 
- 
DEFAULT_SIGNIFICANCE_THRESHOLDpublic static final double DEFAULT_SIGNIFICANCE_THRESHOLDThe default value for the significance threshold. This threshold is for how significant the match is (for example, smaller function matches are less significant). Higher is more significant. There is no upper bound.- See Also:
 
- 
DEFAULT_MAX_MATCHESpublic static final int DEFAULT_MAX_MATCHESThe default value for the maximum number of similar functions to return for a given input function- See Also:
 
- 
manage
- 
nearresponse
- 
threshpublic double thresh
- 
signifthreshpublic double signifthresh
- 
maxpublic int max
- 
vectormaxpublic int vectormax
- 
fillinCategoriespublic boolean fillinCategories
- 
bsimFilter
 
- 
- 
Constructor Details- 
QueryNearestpublic QueryNearest()
 
- 
- 
Method Details- 
buildResponseTemplatepublic void buildResponseTemplate()- Overrides:
- buildResponseTemplatein class- BSimQuery<ResponseNearest>
 
- 
getDescriptionManager- Overrides:
- getDescriptionManagerin class- BSimQuery<ResponseNearest>
 
- 
getLocalStagingCopy- Overrides:
- getLocalStagingCopyin class- BSimQuery<ResponseNearest>
- Returns:
- a partial clone of this query suitable for holding local stages of the query via StagingManager
 
- 
saveXml- Specified by:
- saveXmlin class- BSimQuery<ResponseNearest>
- Throws:
- IOException
 
- 
restoreXml- Specified by:
- restoreXmlin class- BSimQuery<ResponseNearest>
- Throws:
- LSHException
 
 
-