#405 - ENH: Add @ReadAudit and associated functionality for auditing reads including queries and L2 cache access

This commit is contained in:
Robin Bygrave
2015-09-03 13:54:52 +12:00
parent c292da736b
commit 54172aec6c
54 changed files with 2020 additions and 200 deletions
@@ -20,7 +20,16 @@ public class HashQueryPlan {
public String toString() {
return planHash+":"+bindCount+(rawSql != null ? ":r" : "");
}
/**
* Return as a partial key. For rawSql hash the sql is part of the key and as such
* needs to be included in order to have a complete key. Typically the MD5 of the sql
* can be used as a shot form proxy for the actual sql.
*/
public String getPartialKey() {
return planHash+"_"+bindCount;
}
public int hashCode() {
int hc = planHash;
hc = hc * 31 + bindCount;