sachouche commented on a change in pull request #1444: DRILL-6709: Extended the
batch stats utility to other operators
URL: https://github.com/apache/drill/pull/1444#discussion_r212843653
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/util/record/RecordBatchStats.java
##########
@@ -279,4 +324,19 @@ private static void
logBatchStatsMsg(RecordBatchStatsContext batchStatsContext,
}
}
+ private static String toString(BatchIOType ioType) {
+ Preconditions.checkNotNull(ioType, "The record batch IO type cannot be
null");
+
+ switch (ioType) {
Review comment:
I have seen both types of indentation being used; I have implemented your
suggestion.
and yes, I am aware that Java enums are more powerful; for now didn't have a
need to enhance it. I have a added a private variable IOTypeString in case
caller wants to get the string representation. Didn't use this in the code as I
wanted to avoid expensive string concatenation (especially now that the caller
is not using the isStatsLoggingEnabled() check).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services