use of org.apache.hadoop.hive.metastore.model.MStringList in project hive by apache.
the class ObjectStore method covertToSkewedMap.
/**
* Convert a MStringList Map to a Map
*/
private Map<List<String>, String> covertToSkewedMap(Map<MStringList, String> mMap) {
Map<List<String>, String> map = null;
if (mMap != null) {
map = new HashMap<>();
Set<MStringList> keys = mMap.keySet();
for (MStringList key : keys) {
map.put(new ArrayList<>(key.getInternalList()), mMap.get(key));
}
}
return map;
}
use of org.apache.hadoop.hive.metastore.model.MStringList in project hive by apache.
the class ObjectStore method covertToMapMStringList.
/**
* Covert a Map to a MStringList Map
*/
private Map<MStringList, String> covertToMapMStringList(Map<List<String>, String> mMap) {
Map<MStringList, String> map = null;
if (mMap != null) {
map = new HashMap<>();
Set<List<String>> keys = mMap.keySet();
for (List<String> key : keys) {
map.put(new MStringList(key), mMap.get(key));
}
}
return map;
}
Aggregations