[jira] [Commented] (BEAM-469) NullableCoder should encode using the context given and not always use the nested context
[ https://issues.apache.org/jira/browse/BEAM-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15583194#comment-15583194 ] ASF GitHub Bot commented on BEAM-469: - Github user asfgit closed the pull request at: https://github.com/apache/incubator-beam/pull/1104 > NullableCoder should encode using the context given and not always use the > nested context > - > > Key: BEAM-469 > URL: https://issues.apache.org/jira/browse/BEAM-469 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core >Reporter: Luke Cwik >Assignee: Thomas Groh >Priority: Trivial > Fix For: Not applicable > > > NullableCoder should encode using the context given and not always use the > nested context. For coders which can efficiently encode in the outer context > such as StringUtf8Coder or ByteArrayCoder, we are forcing them to prefix > themselves with their length. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (BEAM-469) NullableCoder should encode using the context given and not always use the nested context
[ https://issues.apache.org/jira/browse/BEAM-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15575967#comment-15575967 ] ASF GitHub Bot commented on BEAM-469: - GitHub user tgroh opened a pull request: https://github.com/apache/incubator-beam/pull/1104 [BEAM-469] Remove Remaining Nested Contexts from NullableCoder Be sure to do all of the following to help us incorporate your contribution quickly and easily: - [ ] Make sure the PR title is formatted like: `[BEAM-] Description of pull request` - [ ] Make sure tests pass via `mvn clean verify`. (Even better, enable Travis-CI on your fork and ensure the whole test matrix passes). - [ ] Replace `` in the title with the actual Jira issue number, if there is one. - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.txt). --- You can merge this pull request into a Git repository by running: $ git pull https://github.com/tgroh/incubator-beam nullable_non_nested Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-beam/pull/1104.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1104 commit 4e4e9dfd8a24f614da657dd31b64cea2f4f1aa03 Author: Thomas GrohDate: 2016-10-14T17:34:55Z Remove Remaining Nested Contexts from NullableCoder > NullableCoder should encode using the context given and not always use the > nested context > - > > Key: BEAM-469 > URL: https://issues.apache.org/jira/browse/BEAM-469 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core >Reporter: Luke Cwik >Assignee: Thomas Groh >Priority: Trivial > Fix For: Not applicable > > > NullableCoder should encode using the context given and not always use the > nested context. For coders which can efficiently encode in the outer context > such as StringUtf8Coder or ByteArrayCoder, we are forcing them to prefix > themselves with their length. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (BEAM-469) NullableCoder should encode using the context given and not always use the nested context
[ https://issues.apache.org/jira/browse/BEAM-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15575934#comment-15575934 ] ASF GitHub Bot commented on BEAM-469: - Github user asfgit closed the pull request at: https://github.com/apache/incubator-beam/pull/992 > NullableCoder should encode using the context given and not always use the > nested context > - > > Key: BEAM-469 > URL: https://issues.apache.org/jira/browse/BEAM-469 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core >Reporter: Luke Cwik >Priority: Trivial > Fix For: Not applicable > > > NullableCoder should encode using the context given and not always use the > nested context. For coders which can efficiently encode in the outer context > such as StringUtf8Coder or ByteArrayCoder, we are forcing them to prefix > themselves with their length. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (BEAM-469) NullableCoder should encode using the context given and not always use the nested context
[ https://issues.apache.org/jira/browse/BEAM-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15516832#comment-15516832 ] ASF GitHub Bot commented on BEAM-469: - GitHub user tgroh opened a pull request: https://github.com/apache/incubator-beam/pull/992 [BEAM-469] Do not modify the context in NullableCoder Be sure to do all of the following to help us incorporate your contribution quickly and easily: - [ ] Make sure the PR title is formatted like: `[BEAM-] Description of pull request` - [ ] Make sure tests pass via `mvn clean verify`. (Even better, enable Travis-CI on your fork and ensure the whole test matrix passes). - [ ] Replace `` in the title with the actual Jira issue number, if there is one. - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.txt). --- The NullableCoder does not encode any elements after the subcoder encodes the input value for non-null values. As a result, the subcoder should see the entire input stream if it is available. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tgroh/incubator-beam nullable_non_nested Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-beam/pull/992.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #992 commit e9737ed446bd7c3ba566a3cf148b6a29bcb544c8 Author: Thomas GrohDate: 2016-09-23T15:58:07Z Do not modify the context in NullableCoder The NullableCoder does not encode any elements after the subcoder encodes the input value for non-null values. As a result, the subcoder should see the entire input stream if it is available. > NullableCoder should encode using the context given and not always use the > nested context > - > > Key: BEAM-469 > URL: https://issues.apache.org/jira/browse/BEAM-469 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core >Reporter: Luke Cwik >Priority: Trivial > Fix For: Not applicable > > > NullableCoder should encode using the context given and not always use the > nested context. For coders which can efficiently encode in the outer context > such as StringUtf8Coder or ByteArrayCoder, we are forcing them to prefix > themselves with their length. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (BEAM-469) NullableCoder should encode using the context given and not always use the nested context
[ https://issues.apache.org/jira/browse/BEAM-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15423000#comment-15423000 ] Luke Cwik commented on BEAM-469: That doesn't work with nesting. Imagine I have a KV coder with both the key and value coder being nullable, the key nullable coder doesn't have enough information to be able to make the decision that it isn't followed by another coder. > NullableCoder should encode using the context given and not always use the > nested context > - > > Key: BEAM-469 > URL: https://issues.apache.org/jira/browse/BEAM-469 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core >Reporter: Luke Cwik >Assignee: Luke Cwik >Priority: Trivial > Fix For: Not applicable > > > NullableCoder should encode using the context given and not always use the > nested context. For coders which can efficiently encode in the outer context > such as StringUtf8Coder or ByteArrayCoder, we are forcing them to prefix > themselves with their length. -- This message was sent by Atlassian JIRA (v6.3.4#6332)