virtual void serializeSlaveData(MemoryBuffer &dst, unsigned slave) { CFetchActivityMaster::serializeSlaveData(dst, slave); IDistributedFile *fetchFile = queryReadFile(0); if (fetchFile) fetchFile->queryAttributes().serialize(dst); }
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; } } } } }