Definition at line 31 of file SimilarityTableSetRepositoryInMonet.h. References Impala::Core::Table::SimilarityTableSet::ComputeRanks(), Impala::Persistency::SimilarityTableSetLocator::GetConceptSet(), Impala::Persistency::RepositoryInMonetDB::GetConnection(), Impala::Persistency::SimilarityTableSetLocator::GetFeature(), Impala::Persistency::SimilarityTableSetLocator::GetInIndex(), Impala::Persistency::SimilarityTableSetLocator::GetWalkType(), ILOG_ERROR, LoadSims(), RepMonet(), and Impala::Core::Table::SimilarityTableSet::SetDescription(). 00032 { 00033 if (loc.GetInIndex()) 00034 { 00035 ILOG_ERROR("Index not implemented (yet)"); 00036 return 0; 00037 } 00038 if (loc.GetWalkType() != "Frames") 00039 { 00040 ILOG_ERROR("Only implemented for Frames"); 00041 return 0; 00042 } 00043 00044 Connection* conn = RepMonet().GetConnection(loc); 00045 00046 KeywordListLocator keyLoc(loc, loc.GetConceptSet()); 00047 KeywordList keyList = *(KeywordListRepository().Get(keyLoc)); 00048 if (keyList.size() == 0) 00049 { 00050 ILOG_ERROR("Could find keywords"); 00051 return 0; 00052 } 00053 00054 SimilarityTableSet* res = new SimilarityTableSet(keyList, 0); 00055 res->SetDescription(loc.GetFeature()); 00056 00057 LoadSims(res, loc); 00058 res->ComputeRanks(true); 00059 return res; 00060 }
Here is the call graph for this function:
|