Search in sources :

Example 1 with SharedStateRegistryKey

use of org.apache.flink.runtime.state.SharedStateRegistryKey in project flink by apache.

the class DefaultCompletedCheckpointStoreTest method registerState.

private TestingStreamStateHandle registerState(CompletedCheckpointStore completedCheckpointStore, long checkpointID) {
    TestingStreamStateHandle handle = new TestingStreamStateHandle();
    completedCheckpointStore.getSharedStateRegistry().registerReference(new SharedStateRegistryKey(String.valueOf(new Object().hashCode())), handle, checkpointID);
    return handle;
}
Also used : TestingStreamStateHandle(org.apache.flink.runtime.state.TestingStreamStateHandle) SharedStateRegistryKey(org.apache.flink.runtime.state.SharedStateRegistryKey)

Aggregations

SharedStateRegistryKey (org.apache.flink.runtime.state.SharedStateRegistryKey)1 TestingStreamStateHandle (org.apache.flink.runtime.state.TestingStreamStateHandle)1