public static Integer findLimit(Map<String,String> operatorProperties) throws PlanGenException {
  String limitStr=getOptionalProperty(LIMIT,operatorProperties);
  if (limitStr == null) {
    return null;
  }
  Integer limit=Integer.parseInt(limitStr);
  if (limit < 0) {
    throw new PlanGenException("Limit must be equal to or greater than 0");
  }
  return limit;
}

public static Integer findLimit ( Map < String , String > operatorProperties ) throws PlanGenException { String limitStr = getOptionalProperty ( LIMIT , operatorProperties ) ; if ( limitStr == null ) { return null ; } Integer limit = Integer . parseInt ( limitStr ) ; if ( limit < 0 ) { throw new PlanGenException ( "Limit must be equal to or greater than 0" ) ; } return limit ; }
this function finds the " limit " value in the operator ' s properties . it returns null if the value is not found .
