[ https://issues.apache.org/jira/browse/BEAM-3301?focusedWorklogId=408378&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-408378 ]
ASF GitHub Bot logged work on BEAM-3301: ---------------------------------------- Author: ASF GitHub Bot Created on: 23/Mar/20 23:02 Start Date: 23/Mar/20 23:02 Worklog Time Spent: 10m Work Description: lostluck commented on pull request #11188: [BEAM-3301] Adding restriction trackers and validation. URL: https://github.com/apache/beam/pull/11188#discussion_r396803249 ########## File path: sdks/go/pkg/beam/core/graph/fn_test.go ########## @@ -562,7 +595,13 @@ func (fn *GoodSdf) RestrictionSize(int, RestT) float64 { return 0 } -// TODO(BEAM-3301): Add ProcessElement impl. when restriction trackers are in. +func (fn *GoodSdf) CreateTracker(RestT) *RTrackerT { + return &RTrackerT{} +} + +func (fn *GoodSdf) ProcessElement(*RTrackerT, int) int { Review comment: What do you think of having ProcessElement actually just have an sdf.RTracker value? Having it as the interface simplifies our wrapping approach for dynamic splitting, and means the framework can do it all the time, for safety etc. CreateTracker would still need the actual implementation type, and check that it implements sdf.RTracker of course. We can always extend things to allow a user to "unwrap" the interface if they need direct access to their RTracker implementation for whatever reason. ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 408378) Time Spent: 8h 50m (was: 8h 40m) > Go SplittableDoFn support > ------------------------- > > Key: BEAM-3301 > URL: https://issues.apache.org/jira/browse/BEAM-3301 > Project: Beam > Issue Type: Improvement > Components: sdk-go > Reporter: Henning Rohde > Assignee: Daniel Oliveira > Priority: Major > Time Spent: 8h 50m > Remaining Estimate: 0h > > SDFs will be the only way to add streaming and liquid sharded IO for Go. > Design doc: https://s.apache.org/splittable-do-fn -- This message was sent by Atlassian Jira (v8.3.4#803005)