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

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

                Author: ASF GitHub Bot
            Created on: 28/Oct/20 05:34
            Start Date: 28/Oct/20 05:34
    Worklog Time Spent: 10m 
      Work Description: youngoli commented on a change in pull request #13188:
URL: https://github.com/apache/beam/pull/13188#discussion_r513190490



##########
File path: sdks/go/pkg/beam/io/rtrackers/offsetrange/offsetrange.go
##########
@@ -89,6 +89,28 @@ func (r Restriction) EvenSplits(num int64) (splits 
[]Restriction) {
        return splits
 }
 
+// SizedSplits splits a restriction into multiple restrictions of the given
+// size. If the restriction cannot be evenly split, the final restriction will
+// be the remainder.
+//
+// Example: (0, 24) split into size 10s -> {(0, 10), (10, 20), (20, 24)}
+//
+// Size should be greater than 0. Otherwise there is no way to split the
+// restriction and this function will return the original restriction.
+func (r Restriction) SizedSplits(size int64) (splits []Restriction) {

Review comment:
       Done.




----------------------------------------------------------------
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: 505561)
    Time Spent: 1h 50m  (was: 1h 40m)

> Add an SDF version of TextIO in Go
> ----------------------------------
>
>                 Key: BEAM-11108
>                 URL: https://issues.apache.org/jira/browse/BEAM-11108
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-go
>            Reporter: Daniel Oliveira
>            Assignee: Daniel Oliveira
>            Priority: P2
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Pretty straightforward. Add an SDF equivalent to the TextIO.Read and 
> TextIO.ReadAll transforms.



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

Reply via email to