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

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

                Author: ASF GitHub Bot
            Created on: 03/Nov/21 16:07
            Start Date: 03/Nov/21 16:07
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on pull request #15549:
URL: https://github.com/apache/beam/pull/15549#issuecomment-959576834


   Your loop `ProcessElement` loop would be like:
   ```
   byteKey = tracker.getRestriction().getStart();
   while (tryClaim(byteKey)) {
     cursor = convertToRedisCursor(byteKey);
     values, nextCursor = jedis.scan(cursor);
     byteKey = convertToByteKey(nextCursor);
     output values
   }
   return STOP;
   ```
   
   You could also create a `RedisCursorRangeTracker` that is a thin wrapper 
over the `ByteKeyRangeTracker` and effectively do conversions only by 
internalizing the `convertToRedisCursor` and `convertToByteKey` methods.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 674721)
    Time Spent: 3.5h  (was: 3h 20m)

> Implement RedisIO on top of Splittable DoFn
> -------------------------------------------
>
>                 Key: BEAM-11997
>                 URL: https://issues.apache.org/jira/browse/BEAM-11997
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-redis
>            Reporter: Boyuan Zhang
>            Assignee: Miguel Anzo
>            Priority: P2
>          Time Spent: 3.5h
>  Remaining Estimate: 0h
>




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

Reply via email to