Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-9320

Add an annotation to State to indicate it should always be fetched

Details

    • Improvement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 2.7.1
    • sdk-java-core

    Description

      Currently, if you have several StateIds that always need to be fetched for a stateful DoFn, you have to have a block of .readLater() calls at the beginning of each method.  It would be nicer to have an nnotation on the processElement/processTimer call params to indicate that the value should always be fetched.

      Something like:

      @ProcessElement

      void process(@RequiredStateId("foo") ValueState foo, E element) {...}

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              millsd@google.com Daniel Mills
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h