if (node.isFilter()) return WorkEstimate.getWorkEstimate((SIRFilter)node.contents).getWork((SIRFilter)node.contents); else if (node.isJoiner()) return 1;
if (node.isFilter() || node.isJoiner()) return workEstimatesMap.getEstimate(node);
    private int getWorkEstimate(FlatNode node)    {	if (node.isFilter())	    return WorkEstimate.getWorkEstimate((SIRFilter)node.contents).getWork((SIRFilter)node.contents);	else if (node.isJoiner())	    return 1;		Utils.fail("Trying to get work estimation for non-filter/joiner");	return -1;    }