Definition at line 357 of file IDashQueryEngine.h. References Impala::Core::Trec::Thread::GetFirstShot(), Impala::Core::Trec::Thread::GetName(), Impala::Core::Trec::ThreadSet::GetNrThreads(), Impala::Core::Trec::Thread::GetShotAt(), Impala::Core::Trec::ThreadSet::GetThread(), and mMaxResults. 00358 { 00359 // find the Thread using the "concept" name 00360 Thread *t = NULL; 00361 for (int i=0; i < threadset->GetNrThreads(); i++) 00362 { 00363 if (threadset->GetThread(i)->GetName() == String("rank_") + concept) 00364 { 00365 t = threadset->GetThread(i); 00366 break; 00367 } 00368 } 00369 00370 // make a ShotResult list 00371 ShotResultList out; 00372 if (t != NULL) 00373 { 00374 // int is NOT used for ThreadRank objects... TODO 00375 int firstShot = t->GetFirstShot(); 00376 for (int i=0; i<mMaxResults; i++) 00377 { 00378 ShotResult r; 00379 r.shotid = t->GetShotAt(firstShot, i); 00380 r.rank = i+1; 00381 r.score = 1.0; 00382 out.push_back(r); 00383 } 00384 } 00385 return out; 00386 }
Here is the call graph for this function:
|