MCPcopy Create free account
hub / github.com/apache/impala / putToHmsParameters

Method putToHmsParameters

fe/src/main/java/org/apache/impala/catalog/Db.java:180–187  ·  view source on GitHub ↗

Updates the hms parameters map by adding the input pair.

(String k, String v)

Source from the content-addressed store, hash-verified

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

Callers 1

addFunctionToDbParamsMethod · 0.95

Calls 3

getMethod · 0.65
getParametersMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected