18 #ifndef AGGREGATION_JOBSTAGE_H
19 #define AGGREGATION_JOBSTAGE_H
71 return "AggregationJobStage";
75 return AggregationJobStage_TYPEID;
112 std::cout <<
"[JOB STAGE] JobStageType" << this->
getJobStageType() << std::endl;
113 std::cout <<
"[JOB ID] jobId=" <<
jobId << std::endl;
114 std::cout <<
"[STAGE ID] id=" <<
id << std::endl;
115 std::cout <<
"[INPUT] databaseName=" <<
sourceContext->getDatabase()
117 std::cout <<
"[OUTPUT] databaseName=" <<
sinkContext->getDatabase()
118 <<
", setName=" <<
sinkContext->getSetName() << std::endl;
120 std::cout <<
"[NUMPARTITIONS] numPartitions=" << numNodePartitions << std::endl;
121 std::cout <<
"[MEM] total memory=" << totalMemoryOnThisNode << std::endl;
123 std::cout <<
"[COMPUTATION] outputTupleSetName=" << (*aggComputation).getOutputTupleSetName() << std::endl;
Handle< SetIdentifier > sinkContext
size_t getTotalMemoryOnThisNode()
void setAggComputation(Handle< AbstractAggregateComp > aggComputation)
JobStageID getStageId() override
Handle< AbstractAggregateComp > aggComputation
size_t totalMemoryOnThisNode
bool needsToMaterializeAggOut()
AggregationJobStage(JobStageID stageId, bool materializeOrNot, Handle< AbstractAggregateComp > aggComputation, int numNodePartitions)
std::string getJobStageType() override
void setOutputTypeName(std::string outputTypeName)
void setAggTotalPartitions(int numPartitions)
void setSourceContext(Handle< SetIdentifier > sourceContext)
void setNumNodePartitions(int numNodePartitions)
int16_t getJobStageTypeID() override
std::string getOutputTypeName()
Handle< SetIdentifier > getSourceContext()
Handle< SetIdentifier > getSinkContext()
Handle< AbstractAggregateComp > getAggComputation()
void setSinkContext(Handle< SetIdentifier > sinkContext)
int getNumNodePartitions()
void setAggBatchSize(int batchSize)
AggregationJobStage(JobStageID stageId, bool materializeOrNot, Handle< AbstractAggregateComp > aggComputation)
void setTotalMemoryOnThisNode(size_t totalMem)
Handle< SetIdentifier > sourceContext