Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, each time we create a new FlowFile object, we do so using StandardFlowFileRecord.Builder and then call fromFlowFile(FlowFile). This copies the attributes map of the given FlowFile. We should instead just set the member variable of the builder to point at the same Map object as the given FlowFile and keep a flag indicating whether or not this was done. If this is done, we must lazily copy the hash map before modifying it. Otherwise, we can point to the same Map object.