Definition at line 403 of file DataFactory.h. References Impala::CmdOptions::GetInt(), Impala::CmdOptions::GetString(), ILOG_ERROR, and ILOG_VAR. 00405 { 00406 ILOG_VAR(Samples.mainCrossValidate.GetPartialTask); 00407 end = 0; 00408 start = options.GetInt("start"); 00409 int number = options.GetInt("number"); 00410 if (!options.GetString("concept").empty()) 00411 { 00412 String con = options.GetString("concept"); 00413 int idx = -1; 00414 for (int i=0 ; i<conceptList.size() ; i++) 00415 if (conceptList[i] == con) 00416 idx = i; 00417 if (idx == -1) 00418 { 00419 ILOG_ERROR("Unable to find concept " << con << " in list"); 00420 start = end = 0; 00421 return; 00422 } 00423 start = idx; 00424 number = 1; 00425 } 00426 end = (number == -1) ? conceptList.size() : start + number; 00427 if (end > conceptList.size()) 00428 end = conceptList.size(); 00429 }
Here is the call graph for this function:
|