Skip to content

Update C++ serialization example#617

Merged
davebarnes97 merged 2 commits intoapache:developfrom
davebarnes97:feature/cpp-pdx-example
Jun 15, 2020
Merged

Update C++ serialization example#617
davebarnes97 merged 2 commits intoapache:developfrom
davebarnes97:feature/cpp-pdx-example

Conversation

@davebarnes97
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@karensmolermiller karensmolermiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me. I made one suggestion for wording change, but it is up to you whether you implement the change.

The fields that are marked as identity fields are used to generate the `hashCode` and equality
methods of PdxInstance. Because of this, the identity fields should themselves either be primitives,
or implement `hashCode` and equals. The identity fields should be marked after they are written
using a `write*` method.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 85-86, I'd prefer to see a different wording that directly states that we are ordering the function calls. Perhaps something like:
"Invoke the markIdentityField function directly following its write* function.

I would do the same as surrounding prose, but I think of C++ as having functions, while Java has methods. Probably no one cares which term you use.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestions, @karensmolermiller. I checked in a revision - please give it a second look.

Copy link
Copy Markdown

@karensmolermiller karensmolermiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@davebarnes97 davebarnes97 removed the request for review from jake-at-work June 15, 2020 21:17
@davebarnes97 davebarnes97 merged commit 4cda9eb into apache:develop Jun 15, 2020
@davebarnes97 davebarnes97 deleted the feature/cpp-pdx-example branch June 15, 2020 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants