Beispiel #1
0
        /// <summary>
        /// Saves the state of the specified stateful operator using a writer obtained from the specified state writer factory.
        /// </summary>
        /// <param name="factory">Factory to create an operator state writer to write operator state to.</param>
        /// <param name="node">Operator whose state to write.</param>
        public static void SaveState(this IOperatorStateWriterFactory factory, IStatefulOperator node)
        {
            using var writer = factory.Create(node);

            SaveState(writer, node);
        }
Beispiel #2
0
 public IOperatorStateWriter CreateChild() => _factory.Create(node: null);