Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.0.0
-
None
-
None
Description
Good newbie JIRA. Might need to check as see how far back in the Hadoop-2.0.x line the BuilderUtils exist so we know if we are cutting ourselves off from a future backport, but if we don't care, this can happen:
Instead of creating and hand-populating each RPC record Giraph uses to request resources from YARN like:
Record x = Records.newRecord( className );
x.setField(blah);
x.setOtherField(blahblah);
// ...and so on
we can use BuilderUtils:
Record readyToSend = BuilderUtils.MakeMyNewRecord( blah, blah );
anyway you get the drill.