示例#1
0
 virtual void serializeSlaveData(MemoryBuffer &dst, unsigned slave)
 {
     CFetchActivityMaster::serializeSlaveData(dst, slave);
     IDistributedFile *fetchFile = queryReadFile(0);
     if (fetchFile)
         fetchFile->queryAttributes().serialize(dst);
 }
示例#2
0
 virtual void init()
 {
     CDiskReadMasterVF::init();
     bool canMatch = container.queryLocalOrGrouped() || helper->canMatchAny(); // if local, assume may match
     if (!canMatch)
         totalCountKnown = true; // totalCount = 0;
     else if (!container.queryLocalOrGrouped())
     {
         if (!helper->hasSegmentMonitors() && !helper->hasFilter() && !(helper->getFlags() & TDXtemporary))
         {
             IDistributedFile *file = queryReadFile(0);
             if (file && canMatch)
             {
                 if (0 != (TDRunfilteredcount & helper->getFlags()) && file->queryAttributes().hasProp("@recordCount"))
                 {
                     totalCount = (rowcount_t)file->queryAttributes().getPropInt64("@recordCount");
                     if (totalCount > stopAfter)
                         totalCount = stopAfter;
                     totalCountKnown = true;
                 }
             }
         }
     }
 }