Updates the hms parameters map by adding the input pair.
(String k, String v)
| 178 | * Updates the hms parameters map by adding the input <k,v> pair. |
| 179 | */ |
| 180 | private void putToHmsParameters(String k, String v) { |
| 181 | org.apache.hadoop.hive.metastore.api.Database msDb = thriftDb_.get().metastore_db; |
| 182 | Preconditions.checkNotNull(msDb); |
| 183 | Map<String, String> hmsParams = msDb.getParameters(); |
| 184 | if (hmsParams == null) hmsParams = new HashMap<>(); |
| 185 | hmsParams.put(k,v); |
| 186 | msDb.setParameters(hmsParams); |
| 187 | } |
| 188 | |
| 189 | /** |
| 190 | * Updates the hms parameters map by removing the <k,v> pair corresponding to |
no test coverage detected