/*************************************************************************************
* Project operator
*************************************************************************************/
private void addProjectOperator(Component component) {
final String compName = component.getName();
final TupleSchema inputTupleSchema = _compCost.get(compName).getSchema();
final ProjSchemaCreator psc = new ProjSchemaCreator(_globalCollect, inputTupleSchema,
component, _pq, _schema);
psc.create();
final TupleSchema outputTupleSchema = psc.getOutputSchema();
if (!ParserUtil.isSameSchema(inputTupleSchema, outputTupleSchema)) {
// no need to add projectOperator unless it changes something
attachProjectOperator(component, psc.getProjectOperator());
processProjectCost(component, outputTupleSchema);