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

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

                Author: ASF GitHub Bot
            Created on: 02/May/19 23:44
            Start Date: 02/May/19 23:44
    Worklog Time Spent: 10m 
      Work Description: udim commented on pull request #8394: [BEAM-2857] 
Implementing WriteToFiles transform for fileio (Python)
URL: https://github.com/apache/beam/pull/8394#discussion_r279968359
 
 

 ##########
 File path: sdks/python/apache_beam/transforms/window.py
 ##########
 @@ -367,6 +367,15 @@ class FixedWindows(NonMergingWindowFn):
   """
 
   def __init__(self, size, offset=0):
+    """Initialize a ``FixedWindows`` function for a given size and offset.
+
+    Args:
+      size (int): Size of the window in seconds.
+      offset(int): Offset of the window in seconds since Unix epoch. Windows
+        start at t=N * size + offset where t=0 is the epoch. The offset must
+        be a value in range [0, size). If not, it will be normalized to this
 
 Review comment:
   `offset must be a value in range [0, size)` - could you explain that? 
Because earlier it says that offset is in "Unix epoch" format.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 236660)
    Time Spent: 1h 50m  (was: 1h 40m)

> Create FileIO in Python
> -----------------------
>
>                 Key: BEAM-2857
>                 URL: https://issues.apache.org/jira/browse/BEAM-2857
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-py-core
>            Reporter: Eugene Kirpichov
>            Assignee: Pablo Estrada
>            Priority: Major
>              Labels: gsoc, gsoc2019, mentor
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Beam Java has a FileIO with operations: match()/matchAll(), readMatches(), 
> which together cover the majority of needs for general-purpose file 
> ingestion. Beam Python should have something similar.
> An early design document for this: https://s.apache.org/fileio-beam-python



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

Reply via email to