Class BeamBagStateHandler

  • All Implemented Interfaces:
    BeamStateHandler<org.apache.flink.api.common.state.ListState<byte[]>>

    public class BeamBagStateHandler
    extends AbstractBeamStateHandler<org.apache.flink.api.common.state.ListState<byte[]>>
    BeamBagStateHandler handles operations on ListState, which backs Beam bag states.
    • Constructor Summary

      Constructors 
      Constructor Description
      BeamBagStateHandler​(org.apache.flink.api.common.typeutils.TypeSerializer<?> namespaceSerializer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse.Builder handleAppend​(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request, org.apache.flink.api.common.state.ListState<byte[]> listState)
      Handles APPEND requests.
      org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse.Builder handleClear​(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request, org.apache.flink.api.common.state.ListState<byte[]> listState)
      Handles CLEAR requests.
      org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse.Builder handleGet​(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request, org.apache.flink.api.common.state.ListState<byte[]> listState)
      Handles GET requests.
    • Constructor Detail

      • BeamBagStateHandler

        public BeamBagStateHandler​(@Nullable
                                   org.apache.flink.api.common.typeutils.TypeSerializer<?> namespaceSerializer)
    • Method Detail

      • handleGet

        public org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse.Builder handleGet​(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request,
                                                                                              org.apache.flink.api.common.state.ListState<byte[]> listState)
                                                                                       throws Exception
        Description copied from interface: BeamStateHandler
        Handles GET requests.
        Throws:
        Exception
      • handleAppend

        public org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse.Builder handleAppend​(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request,
                                                                                                 org.apache.flink.api.common.state.ListState<byte[]> listState)
                                                                                          throws Exception
        Description copied from interface: BeamStateHandler
        Handles APPEND requests.
        Throws:
        Exception
      • handleClear

        public org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse.Builder handleClear​(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request,
                                                                                                org.apache.flink.api.common.state.ListState<byte[]> listState)
                                                                                         throws Exception
        Description copied from interface: BeamStateHandler
        Handles CLEAR requests.
        Throws:
        Exception