You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Luke Cwik (Jira)" <ji...@apache.org> on 2019/11/07 18:23:00 UTC

[jira] [Resolved] (BEAM-8573) @SplitRestriction's documented signature is incorrect

     [ https://issues.apache.org/jira/browse/BEAM-8573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Cwik resolved BEAM-8573.
-----------------------------
    Fix Version/s: 2.18.0
       Resolution: Fixed

> @SplitRestriction's documented signature is incorrect
> -----------------------------------------------------
>
>                 Key: BEAM-8573
>                 URL: https://issues.apache.org/jira/browse/BEAM-8573
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>    Affects Versions: 2.15.0
>            Reporter: Jonathan Alvarez-Gutierrez
>            Assignee: Jonathan Alvarez-Gutierrez
>            Priority: Minor
>             Fix For: 2.18.0
>
>   Original Estimate: 48h
>          Time Spent: 20m
>  Remaining Estimate: 47h 40m
>
> The documented signature for DoFn.SplitRestriction isĀ 
> {code:java}
> List<RestrictionT> splitRestriction( InputT element, RestrictionT restriction);{code}
> This fails to compile with, for example:
> {{@SplitRestriction split(long, OffsetRange): Must return void}}
> It looks like the correct signature is:
> {code:java}
> void splitRestriction(InputT element, RestrictionT restriction,
>     OutputReceiver<RestrictionT> restriction);{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)