Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

VirtualFeatureTable* Impala::Core::Feature::VirtualFeatureTableFactory::ConstructIOBufferReader ( const Persistency::FeatureLocator loc,
bool  cacheIt 
) [inline]

Definition at line 30 of file VirtualFeatureTableFactory.h.

References ILOG_ERROR, mIOBuffers, mUseCache, Impala::Util::IOBuffer::SetPosition(), and Impala::Persistency::FeatureLocator::ToString().

00031     {
00032         if (!mUseCache)
00033             cacheIt = false;
00034         Util::IOBuffer* buf = 0;
00035         if (mIOBuffers.Get(loc.ToString(), buf))
00036         {
00037             buf->SetPosition(0);
00038             return new VirtualFeatureTableIOBufferReader(buf, false);
00039         }
00040         typedef Persistency::FeatureTableRepository FeatureTableRepository;
00041         typedef Persistency::File File;
00042         File file = FeatureTableRepository().ExposeFile(loc, false);
00043         //buf = file.GetReadBuffer();
00044         buf = file.GetReadBuffer(true, "");
00045         if (!buf)
00046         {
00047             ILOG_ERROR("[ConstructIOBufferReader] Couldn't get readbuffer for "
00048                        << loc);
00049             return 0;
00050         }
00051         if (cacheIt)
00052             mIOBuffers.Add(loc.ToString(), buf);
00053         return new VirtualFeatureTableIOBufferReader(buf, !cacheIt);
00054     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:19:31 2011 for ImpalaSrc by  doxygen 1.5.1