20 fTableName(tableName),
45 sitr != subCache.end();
46 ++sitr) {
delete *sitr; }
53 if ( ! res ) {
return; }
65 subCache.push_back(res);
68 cout <<
"Adopting result for " << res->
TableName()
70 <<
"\nCache size now " <<
fCurSize << endl;
75 cout <<
"Caching new results: ResultKey: " << *res->
GetKey();
84 return ( itr ==
fCache.end() ) ? 0 : &itr->second;
92 ) {
Purge(itr->second); }
99 for (
SubCacheItr_t itr = subCache.begin(); itr != subCache.end(); ) {
108 <<
" cache. Cache size now "
112 itr = subCache.erase(itr);
123 const string& sqlQualifiers)
const
128 cout <<
"Secondary cache search of table " <<
fTableName
130 << (sqlQualifiers !=
"" ? sqlQualifiers :
"" ) << endl;
133 cout <<
"Secondary cache search failed." << endl;
142 if ( res->
Satisfies(vrec,sqlQualifiers) ) {
144 cout <<
"Secondary cache search succeeded. Result set no. of rows: "
150 cout <<
"Secondary cache search failed." << endl;
159 cout <<
"Primary cache search of table " <<
fTableName
161 <<
" with task " << task << endl;
164 cout <<
"Primary cache search failed - sub-cache -1 is empty" << endl;
177 FairDbSimFlagAssociation::SimList_t::iterator listItr = simList.begin();
178 FairDbSimFlagAssociation::SimList_t::iterator listItrEnd = simList.end();
179 while ( listItr != listItrEnd ) {
184 cout <<
" Searching cache with SimFlag: "
187 itr != subCache->end();
192 cout <<
"Primary cache search succeeded. Result set no. of rows: "
198 cout <<
"Primary cache search failed." << endl;
208 cout <<
"Primary cache search of table " <<
fTableName
209 <<
" for SQL " << sqlQualifiers << endl;
212 cout <<
"Primary cache search failed" << endl;
216 itr != subCache->end();
221 cout <<
"Primary cache search succeeded Result set no. of rows: "
226 cout <<
"Primary cache search failed" << endl;
240 subcacheItr != subcache.end();
241 ++subcacheItr ) { (*subcacheItr)->SetCanReuse(kFALSE); }