public CostEstimate costSortWithLimit(long size,long limit,int nfields){
  return new CostEstimate(Math.min(size,limit),model.sortWithLimit((int)size,nfields));
}

public CostEstimate costSortWithLimit ( long size , long limit , int nfields ) { return new CostEstimate ( Math . min ( size , limit ) , model . sortWithLimit ( ( int ) size , nfields ) ) ; }
estimate the cost of a sort of the given size and limit .
