Class TableScoreCaching
java.lang.Object
ghidra.features.bsim.query.client.TableScoreCaching
- All Implemented Interfaces:
- ScoreCaching
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcommitSelfScore(String md5, float score) Commit a new self-significance score for an executablefloatgetSelfScore(String md5) Retrieve the self-significance score for a given executabledoubledoublevoidprefetchScores(Set<ExecutableRecord> exeSet, List<ExecutableRecord> missing) Pre-load self-scores for a set of executables.voidresetStorage(double simThresh, double sigThresh) Clear out any existing scores, and reset to an empty database
- 
Constructor Details- 
TableScoreCaching
 
- 
- 
Method Details- 
prefetchScorespublic void prefetchScores(Set<ExecutableRecord> exeSet, List<ExecutableRecord> missing) throws LSHException Description copied from interface:ScoreCachingPre-load self-scores for a set of executables.- Specified by:
- prefetchScoresin interface- ScoreCaching
- Parameters:
- exeSet- is the set of executables to check
- missing- (optional - may be null) will contain the list of exes missing a score
- Throws:
- LSHException- if there are problems loading scores
 
- 
getSelfScoreDescription copied from interface:ScoreCachingRetrieve the self-significance score for a given executable- Specified by:
- getSelfScorein interface- ScoreCaching
- Parameters:
- md5- is the 32-character md5 string specifying the executable
- Returns:
- the corresponding score
- Throws:
- LSHException- if the score is not obtainable
 
- 
commitSelfScoreDescription copied from interface:ScoreCachingCommit a new self-significance score for an executable- Specified by:
- commitSelfScorein interface- ScoreCaching
- Parameters:
- md5- is the 32-character md5 string specifying the executable
- score- is the score to commit
- Throws:
- LSHException- if there's a problem saving the value
 
- 
getSimThreshold- Specified by:
- getSimThresholdin interface- ScoreCaching
- Returns:
- similarity threshold configured with this cache OR return -1 if the score is unconfigured
- Throws:
- LSHException- for problems retrieving configuration
 
- 
getSigThreshold- Specified by:
- getSigThresholdin interface- ScoreCaching
- Returns:
- significance threshold configured with this cache OR return -1 if the score is unconfigured
- Throws:
- LSHException- for problems retrieving configuration
 
- 
resetStorageDescription copied from interface:ScoreCachingClear out any existing scores, and reset to an empty database- Specified by:
- resetStoragein interface- ScoreCaching
- Parameters:
- simThresh- is new similarity threshold to associate with scores
- sigThresh- is new significance threshold to associate with scores
- Throws:
- LSHException- if there is a problem modifying storage
 
 
-