I am looking at the tutorial examples of Yarn application and see the pattern:
// Resource requirements for worker containers > Resource capability = Records.newRecord(Resource.class); > capability.setMemory(128); > capability.setVirtualCores(1); I am trying to understand the reasoning for using a Factory Records class to construct an instance of Resource (same pattern is repeated for every other Yarn object creation). Is the extra indirection being used currently for any particular use case? Or is it for future extension? Thanks Daryoush