(Properties tbl, Configuration conf)
| 300 | } |
| 301 | |
| 302 | private String lookupValue(Properties tbl, Configuration conf) { |
| 303 | String result = null; |
| 304 | if (tbl != null) { |
| 305 | result = tbl.getProperty(attribute); |
| 306 | } |
| 307 | if (result == null && conf != null) { |
| 308 | result = conf.get(attribute); |
| 309 | if (result == null && hiveConfName != null) { |
| 310 | result = conf.get(hiveConfName); |
| 311 | } |
| 312 | } |
| 313 | return result; |
| 314 | } |
| 315 | |
| 316 | public int getInt(Properties tbl, Configuration conf) { |
| 317 | String value = lookupValue(tbl, conf); |