fapaul commented on code in PR #26910: URL: https://github.com/apache/flink/pull/26910#discussion_r2284444121
########## flink-test-utils-parent/flink-test-utils-source/src/main/java/org/apache/flink/test/util/source/AbstractTestSource.java: ########## @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.flink.test.util.source; + +import org.apache.flink.core.io.SimpleVersionedSerializer; + +/** + * Abstract base class for test sources that provides default implementations for all Source V2 + * methods. This class fixes the enumerator checkpoint type to {@code Void} for the common case + * where no checkpoint state is needed. + * + * <p>For test cases that require checkpointing enumerator state, extend {@link + * AbstractTestSourceBase} directly with a custom checkpoint type. + * + * @param <T> The type of records produced by this source + */ +public abstract class AbstractTestSource<T> extends AbstractTestSourceBase<T, Void> { Review Comment: That makes sense. For all use cases without the need for the enumerator checkpoints, we use the `AbstractTestSource`; otherwise, we need to fallback to implementing the base class. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org