beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Groh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BEAM-317) Implement PAssert without using Side Inputs
Date Mon, 06 Jun 2016 21:57:21 GMT

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

Thomas Groh updated BEAM-317:
-----------------------------
    Description: 
SideInputs are not supported equally by all runners. Implementing assertions as a main input
and a serialized assertion allows runner implementors to test their implementations prior
to constructing side inputs.

satisfies is the same, but accumulates the entire input into a single pane which it takes
as a main input.

containsInAnyOrder encodes the expected elements as they need not be serializable, and then
can be implemented in terms of satisfies.

empty can be implemented by failing if provided with any elements, so long as the success
counter is not the means by which success is measured.

  was:
SideInputs are not supported equally by all runners. Implementing non-empty assertions as
a main input and a serialized assertion allows runner implementors to test their implementations
prior to constructing side inputs.



        Summary: Implement PAssert without using Side Inputs  (was: Implement PAssert#containsInAnyOrder
and PAssert#satisfies without using Side Inputs)

> Implement PAssert without using Side Inputs
> -------------------------------------------
>
>                 Key: BEAM-317
>                 URL: https://issues.apache.org/jira/browse/BEAM-317
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Thomas Groh
>            Assignee: Thomas Groh
>            Priority: Minor
>
> SideInputs are not supported equally by all runners. Implementing assertions as a main
input and a serialized assertion allows runner implementors to test their implementations
prior to constructing side inputs.
> satisfies is the same, but accumulates the entire input into a single pane which it takes
as a main input.
> containsInAnyOrder encodes the expected elements as they need not be serializable, and
then can be implemented in terms of satisfies.
> empty can be implemented by failing if provided with any elements, so long as the success
counter is not the means by which success is measured.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message