void CRUAuditRefreshTaskExecutor:: StoreRequest(CUOFsIpcMessageTranslator &translator) { inherited::StoreRequest(translator); translator.WriteBlock(&isPurgedata_, sizeof(BOOL)); translator.WriteBlock(&isPopindex_, sizeof(BOOL)); // Handle audit refresh executor sql dynamic container auditRefreshTEDynamicContainer_.StoreData(translator); // Handle isDeleteMultiTxnContext_ data member translator.WriteBlock(&isDeleteMultiTxnContext_,sizeof(BOOL)); translator.WriteBlock(&numOfIndexes_, sizeof(TInt32)); if (0 < numOfIndexes_) { pAuditPopIndexdynamicContainer_->StoreData(translator); pAuditAvailableIndeXdynamicContainer_->StoreData(translator); pAuditUnavailableIndeXdynamicContainer_->StoreData(translator); pAuditToggleOnIndexdynamicContainer_->StoreData(translator); pAuditToggleOffIndexdynamicContainer_->StoreData(translator); } translator.SetMessageType(CUOFsIpcMessageTranslator:: RU_AUDIT_REFRESH_EXECUTOR); }
void CRUSQLDynamicStatementContainer::DynamicStmt:: StoreData(CUOFsIpcMessageTranslator &translator) { inherited::StoreData(translator); short size; if (NULL == sql_) { size = 0; translator.WriteBlock(&size, sizeof(short)); return; } #pragma nowarn(1506) // warning elimination size = strlen(sql_)+1; #pragma warn(1506) // warning elimination translator.WriteBlock(&size, sizeof(short)); translator.WriteBlock(¶mNum_, sizeof(Lng32)); for (Int32 i=0;i<paramNum_;i++) { translator.WriteBlock(&(paramsPos_[i]), sizeof(Int32)); } translator.WriteBlock(sql_, size); }
//--------------------------------------------------------------------------// // CRULogCleanupTaskExecutor::StoreRequest() //--------------------------------------------------------------------------// // LCOV_EXCL_START :cnu void CRULogCleanupTaskExecutor:: StoreRequest(CUOFsIpcMessageTranslator &translator) { inherited::StoreRequest(translator); logCleanupTEDynamicContainer_.StoreData(translator); translator.WriteBlock(&hasRangeLog_,sizeof(BOOL)); translator.WriteBlock(&noOfPartitions_,sizeof(Int32)); translator.SetMessageType( CUOFsIpcMessageTranslator::RU_LOG_CLEANUP_EXECUTOR); }
void CRUEmpCheckVector::StoreData(CUOFsIpcMessageTranslator &translator) { // Handle size_ data member translator.WriteBlock(&size_, sizeof(Lng32)); // Handle final_ data member translator.WriteBlock(&isFinal_,sizeof(BOOL)); // Handle pVec_ data member for (Int32 i=0; i<size_; i++) { translator.WriteBlock(&(pVec_[i].epoch_),sizeof(TInt32)); translator.WriteBlock(&(pVec_[i].checkBitmap_), sizeof(Lng32)); } }
void CRUTableSyncTaskExecutor:: StoreRequest(CUOFsIpcMessageTranslator &translator) { inherited::StoreRequest(translator); Int32 stringSize = tableName_.GetLength() + 1; translator.WriteBlock(&stringSize, sizeof(Int32)); #pragma nowarn(1506) // warning elimination translator.WriteBlock(tableName_.c_string(), stringSize);; #pragma warn(1506) // warning elimination syncTableDynamicContainer_.StoreData(translator); translator.SetMessageType(CUOFsIpcMessageTranslator:: RU_TABLE_SYNC_EXECUTOR); }
//--------------------------------------------------------------------------// //--------------------------------------------------------------------------// void CRUSingleTableLockProtocol::StoreData(CUOFsIpcMessageTranslator &translator) { StoreDataFileNameList(translator); pEmpCheck_->StoreData(translator); translator.WriteBlock(&endEpoch_, sizeof(TInt32)); }
//--------------------------------------------------------------------------// // CRURefreshTaskExecutor::StoreReply() //--------------------------------------------------------------------------// // LCOV_EXCL_START :cnu void CRURefreshTaskExecutor:: StoreReply(CUOFsIpcMessageTranslator &translator) { inherited::StoreReply(translator); translator.WriteBlock(&isRecompute_,sizeof(BOOL)); }
void CRUEmpCheck::StoreData(CUOFsIpcMessageTranslator &translator) { pSQLContainer_->StoreData(translator); pVec_->StoreData(translator); translator.WriteBlock(&checkMask_, sizeof(Lng32)); }
//--------------------------------------------------------------------------// // CRUSingleTableLockProtocol::StoreDataFileNameList() //--------------------------------------------------------------------------// void CRUSingleTableLockProtocol::StoreDataFileNameList(CUOFsIpcMessageTranslator &translator) { Int32 size = pUsedTblFileNameList_->GetCount(); translator.WriteBlock(&size,sizeof(Int32)); DSListPosition pos = pUsedTblFileNameList_->GetHeadPosition(); while (NULL != pos) { Int32 stringSize; CDSString &str = *(pUsedTblFileNameList_->GetNext(pos)); stringSize = str.GetLength() + 1; translator.WriteBlock(&stringSize, sizeof(Int32)); #pragma nowarn(1506) // warning elimination translator.WriteBlock(str.c_string(), stringSize); #pragma warn(1506) // warning elimination } }
//--------------------------------------------------------------------------// // CRUTableLockProtocol::StoreData() // //--------------------------------------------------------------------------// // LCOV_EXCL_START :cnu void CRUTableLockProtocol::StoreData(CUOFsIpcMessageTranslator &translator) { // Store the NothingToLock_ flag translator.WriteBlock(&NothingToLock_, sizeof(BOOL)); if (NothingToLock_) return; // Store the number of elements in the lock list Lng32 count = LocksList_->GetCount(); translator.WriteBlock(&count, sizeof(Lng32)); // Store the lock elements. CRUSingleTableLockProtocol *thisLock = NULL; DSListPosition pos = LocksList_->GetHeadPosition(); while (pos != NULL) { thisLock = LocksList_->GetNext(pos); thisLock->StoreData(translator); } }
void CRUUnAuditRefreshTaskExecutor:: StoreRequest(CUOFsIpcMessageTranslator &translator) { inherited::StoreRequest(translator); translator.WriteBlock(&isPurgedata_, sizeof(BOOL)); translator.WriteBlock(&isPopindex_, sizeof(BOOL)); // Store the executor-specific SQL container unAuditRefreshTEDynamicContainer_.StoreData(translator); translator.WriteBlock(&numOfIndexes_, sizeof(TInt32)); if (0 < numOfIndexes_) { pUnAuditPopIndexdynamicContainer_->StoreData(translator); pUnAuditAvailableIndeXdynamicContainer_->StoreData(translator); pUnAuditUnavailableIndeXdynamicContainer_->StoreData(translator); } translator.SetMessageType( CUOFsIpcMessageTranslator::RU_UNAUDIT_REFRESH_EXECUTOR ); }
//--------------------------------------------------------------------------// // CRURefreshTaskExecutor::StoreRequest() //--------------------------------------------------------------------------// // LCOV_EXCL_START :cnu void CRURefreshTaskExecutor:: StoreRequest(CUOFsIpcMessageTranslator &translator) { inherited::StoreRequest(translator); translator.WriteBlock(&isRecompute_,sizeof(BOOL)); Int32 stringSize = rootMVName_.GetLength() + 1; translator.WriteBlock(&stringSize, sizeof(Int32)); #pragma nowarn(1506) // warning elimination translator.WriteBlock(rootMVName_.c_string(), stringSize); #pragma warn(1506) // warning elimination stringSize = rootMVSchema_.GetLength() + 1; translator.WriteBlock(&stringSize, sizeof(Int32)); #pragma nowarn(1506) // warning elimination translator.WriteBlock(rootMVSchema_.c_string(), stringSize); #pragma warn(1506) // warning elimination stringSize = rootMVCatalog_.GetLength() + 1; translator.WriteBlock(&stringSize, sizeof(Int32)); #pragma nowarn(1506) // warning elimination translator.WriteBlock(rootMVCatalog_.c_string(), stringSize); #pragma warn(1506) // warning elimination translator.WriteBlock(&rootMVUID_, sizeof(TInt64)); translator.WriteBlock(&rootMVType_, sizeof(Int32)); translator.WriteBlock(&forceFlags_, sizeof(TInt32)); if (NO_FORCE != forceFlags_) { translator.WriteBlock(&numOfStmtInContainer_, sizeof(TInt32)); // Handle refresh executor sql dynamic container pRefreshTEDynamicContainer_->StoreData(translator); } // Handle lock table dynamic container short lockTable; if (NULL != tableLockProtocol_ ) { lockTable = 1; translator.WriteBlock(&lockTable, sizeof(short)); tableLockProtocol_->StoreData(translator); } else { lockTable = 0; translator.WriteBlock(&lockTable, sizeof(short)); } }