Class ChangelogStateFactory

    • Constructor Detail

      • ChangelogStateFactory

        public ChangelogStateFactory()
    • Method Detail

      • create

        public <K,​N,​V,​S extends org.apache.flink.api.common.state.State> ChangelogState create​(org.apache.flink.api.common.state.StateDescriptor<S,​V> stateDescriptor,
                                                                                                                 org.apache.flink.runtime.state.internal.InternalKvState<K,​N,​V> internalKvState,
                                                                                                                 KvStateChangeLogger<V,​N> kvStateChangeLogger,
                                                                                                                 org.apache.flink.runtime.state.InternalKeyContext<K> keyContext)
                                                                                                          throws Exception
        Throws:
        Exception
      • getExistingState

        public ChangelogState getExistingState​(String name,
                                               org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot.BackendStateType type)
                                        throws UnsupportedOperationException
        Parameters:
        name - state name
        type - state type (the only supported type currently are: key value, priority queue)
        Returns:
        an existing state, i.e. the one that was already created. The returned state will not apply TTL to the passed values, regardless of the TTL settings. This prevents double applying of TTL (recovered values are TTL values if TTL was enabled). The state will, however, use TTL serializer if TTL is enabled. WARN: only valid during the recovery.
        Throws:
        UnsupportedOperationException - if state type is not supported
      • resetAllWritingMetaFlags

        public void resetAllWritingMetaFlags()
      • dispose

        public void dispose()