beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (BEAM-5264) Reference DirectRunner implementation of Python user state and timers API
Date Mon, 03 Sep 2018 15:07:09 GMT

     [ https://issues.apache.org/jira/browse/BEAM-5264?focusedWorklogId=140607&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-140607
]

ASF GitHub Bot logged work on BEAM-5264:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Sep/18 15:06
            Start Date: 03/Sep/18 15:06
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on a change in pull request #6304: [BEAM-5264]
Reference DirectRunner implementation of Python User State and Timers API
URL: https://github.com/apache/beam/pull/6304#discussion_r214708879
 
 

 ##########
 File path: sdks/python/apache_beam/runners/direct/direct_userstate.py
 ##########
 @@ -0,0 +1,115 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+"""Support for user state in the BundleBasedDirectRunner."""
+from __future__ import absolute_import
+
+from apache_beam.transforms.trigger import _ListStateTag
+from apache_beam.transforms.userstate import BagStateSpec
 
 Review comment:
   I know we haven't been very consistent about this in the codebase, but I'd prefer importing
modules rather than each individual class when possible (similar to the suggestion in the
Google style guide). 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 140607)
    Time Spent: 2h  (was: 1h 50m)

> Reference DirectRunner implementation of Python user state and timers API
> -------------------------------------------------------------------------
>
>                 Key: BEAM-5264
>                 URL: https://issues.apache.org/jira/browse/BEAM-5264
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>    Affects Versions: 2.6.0
>            Reporter: Charles Chen
>            Assignee: Charles Chen
>            Priority: Major
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> This issue tracks the reference DirectRunner implementation of the Beam Python User
State and Timer API, described here: [https://s.apache.org/beam-python-user-state-and-timers].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message