Definition at line 250 of file PrecomputeTask.h. References Impala::Persistency::KernelMatrixRepository::ExposeFilePath(), Impala::FileNameBase(), Impala::FileNamePath(), Impala::Core::Feature::VirtualFeatureTableFactory::GetInstance(), Impala::Core::Feature::VirtualFeatureTableIOBufferWriter::GetMatrix(), ILOG_ERROR, mComputingTestKernel, mMatrix, mThisKerLoc, mWriter, and Impala::Persistency::RepositoryGetFile(). 00251 { 00252 typedef Core::Matrix::VirtualMatrixFactory VMFactory; 00253 using Persistency::RepositoryGetFile; 00254 00255 String path = KernelMatrixRepository().ExposeFilePath(mThisKerLoc, true); 00256 if (path.empty()) 00257 { 00258 ILOG_ERROR("Couldn't get writable file for kernel " << mThisKerLoc); 00259 return 0; 00260 } 00261 String suffix = (mComputingTestKernel) ? ".tab" 00262 : ".precomputed.part-R0-C0.raw"; 00263 String fName = FileNamePath(path) + FileNameBase(path) + suffix; 00264 Persistency::FileLocator fileLoc(mThisKerLoc, fName); 00265 File file = RepositoryGetFile(fileLoc, true, false); 00266 if (mComputingTestKernel) 00267 { 00268 mWriter = VFTFactory::GetInstance().ConstructIOBufferWriter 00269 (nrRow, nrCol, file, false); 00270 return mWriter->GetMatrix(); 00271 } 00272 else 00273 { 00274 mMatrix = VMFactory::GetInstance().ConstructIOBufferWriter 00275 (nrRow, nrCol, file, true, true); 00276 return mMatrix; 00277 } 00278 }
Here is the call graph for this function:
|