steveloughran commented on PR #6789:
URL: https://github.com/apache/hadoop/pull/6789#issuecomment-2108338924

   I have a better design for this. changign this to draft.
   
   Proposed: we have a `Configuration.getEnumOptions(Enum x, boolean 
failIfUnknown)` which returns an EnumSet of all values of the enum class whose 
valueOf() matches an entry in the CSV list (with some mapping such as case 
conversion, and map - and . to "_". 
   
   this makes it trivial to reuse/process. the implementation would be outside 
the actual Configuration class to make it easy for AbfsConfiguration to use too


-- 
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: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to