deniskuzZ commented on code in PR #6379:
URL: https://github.com/apache/hive/pull/6379#discussion_r3001332797
##########
ql/src/java/org/apache/hadoop/hive/llap/ProactiveEviction.java:
##########
@@ -191,36 +208,44 @@ public
List<LlapDaemonProtocolProtos.EvictEntityRequestProto> toProtoRequests()
List<LlapDaemonProtocolProtos.EvictEntityRequestProto> protoRequests =
new LinkedList<>();
- for (Map.Entry<String, Map<String, Set<LinkedHashMap<String, String>>>>
dbEntry : entities.entrySet()) {
- String dbName = dbEntry.getKey();
- Map<String, Set<LinkedHashMap<String, String>>> tables =
dbEntry.getValue();
+ for (Map.Entry<String, Map<String, Map<String, Set<LinkedHashMap<String,
String>>>>> catalogEntry :
+ entities.entrySet()) {
+ String catalogName = catalogEntry.getKey();
+ Map<String, Map<String, Set<LinkedHashMap<String, String>>>> dbs =
catalogEntry.getValue();
- LlapDaemonProtocolProtos.EvictEntityRequestProto.Builder
requestBuilder =
- LlapDaemonProtocolProtos.EvictEntityRequestProto.newBuilder();
- LlapDaemonProtocolProtos.TableProto.Builder tableBuilder = null;
+ for (Map.Entry<String, Map<String, Set<LinkedHashMap<String,
String>>>> dbEntry : dbs.entrySet()) {
Review Comment:
why not use Stream API?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]