in services/library/src/main/java/com/google/cloud/pso/bq_pii_classifier/entities/TableScanLimitsConfig.java [50:60]
public Integer getTableScanLimitBasedOnNumRows (Integer numRows){
// loop on the sorted intervals and return the value for the right interval bracket
for(Integer IntervalEnd: limitsIntervals.keySet()){
if (numRows <= IntervalEnd){
return limitsIntervals.get(IntervalEnd);
}
}
// if no interval found return the value of the highest bracket
return limitsIntervals.get(limitsIntervals.lastKey());
}