Esempio n. 1
0
 protected AbstractKeyedStateBackend <TKey> CreateKeyedBackend <TKey>(
     TypeSerializer <TKey> keySerializer,
     int numberOfKeyGroups,
     KeyGroupRange keyGroupRange,
     IEnvironment env) => StateBackend.CreateKeyedStateBackend(
     env,
     new JobId(),
     "test_op",
     keySerializer,
     numberOfKeyGroups,
     keyGroupRange,
     env.TaskKvStateRegistry,
     TtlTimeProvider.Default,
     new UnRegisteredMetricsGroup(),
     new List <IKeyedStateHandle>(),
     new CloseableRegistry());
Esempio n. 2
0
 protected ICheckpointStreamFactory CreateStreamFactory() => _checkpointStreamFactory ?? StateBackend
 .CreateCheckpointStorage(new JobId())
 .ResolveCheckpointStorageLocation(1L,
                                   CheckpointStorageLocationReference.Default);