Interface BeamStateStore

  • All Known Implementing Classes:
    BeamKeyedStateStore, BeamOperatorStateStore

    public interface BeamStateStore
    Interface for getting the underlying state based on Beam state request (keyed state or operator state).
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.flink.api.common.state.ListState<byte[]> getListState​(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request)
      Parse BeamFnApi.StateRequest and return the corresponding ListState.
      org.apache.flink.api.common.state.MapState<ByteArrayWrapper,​byte[]> getMapState​(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request)
      Parse BeamFnApi.StateRequest and return the corresponding MapState.
      static BeamStateStore unsupported()  
    • Method Detail

      • getListState

        org.apache.flink.api.common.state.ListState<byte[]> getListState​(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request)
                                                                  throws Exception
        Parse BeamFnApi.StateRequest and return the corresponding ListState.
        Throws:
        Exception
      • getMapState

        org.apache.flink.api.common.state.MapState<ByteArrayWrapper,​byte[]> getMapState​(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request)
                                                                                       throws Exception
        Parse BeamFnApi.StateRequest and return the corresponding MapState.
        Throws:
        Exception