src/selfLearning/source/DRLBasedDataPlacementOptimizerForLoadJob.cc
size_t DRLBasedDataPlacementOptimizerForLoadJob :: getBestPageSize() {

     if ((numPartitions < 1) || (this->state.numNodes < 1)) {
         return 0;
     }
     if ((bestLambdaIndex >= 0) && (bestLambdaIndex < this->lambdaCandidates.size())) {

         return this->state.inputSize / this->numPartitions;

     } else { 

         return this->state.inputSize / (this->numPartitions/this->state.numNodes);

     }
}
//to get the best page size based on data size and selected lambda (particularly if selected is non-partitioning)
to get the best page size based on data size and selected lambda (particularly if selected is non-partitioning)
to get the best page size based on data size and selected lambda ( particularly if selected is non - partitioning )
size_t DRLBasedDataPlacementOptimizerForLoadJob :: getBestPageSize() {
     if ((numPartitions < 1) || (this->state.numNodes < 1)) {
         return 0;
     }
     if ((bestLambdaIndex >= 0) && (bestLambdaIndex < this->lambdaCandidates.size())) {
         return this->state.inputSize / this->numPartitions;
     } else { 
         return this->state.inputSize / (this->numPartitions/this->state.numNodes);
     }
}
size_t DRLBasedDataPlacementOptimizerForLoadJob :: getBestPageSize ( ) { if ( ( numPartitions < 1 ) || ( this -> state . numNodes < 1 ) ) { return 0 ; } if ( ( bestLambdaIndex >= 0 ) && ( bestLambdaIndex < this -> lambdaCandidates . size ( ) ) ) { return this -> state . inputSize / this -> numPartitions ; } else { return this -> state . inputSize / ( this -> numPartitions / this -> state . numNodes ) ; } }
to get the best page size based on data size and selected lambda (particularly if selected is non-partitioning)
to get the best page size based on data size and selected lambda ( particularly if selected is non - partitioning )