0AyanamiRei commented on code in PR #61325: URL: https://github.com/apache/doris/pull/61325#discussion_r3054261754
########## fe/fe-core/src/main/java/org/apache/doris/load/routineload/KinesisProgress.java: ########## @@ -0,0 +1,331 @@ +// 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.doris.load.routineload; + +import org.apache.doris.common.DdlException; +import org.apache.doris.common.Pair; +import org.apache.doris.common.util.DebugUtil; +import org.apache.doris.thrift.TKinesisRLTaskProgress; + +import com.google.common.base.Joiner; +import com.google.common.collect.Lists; +import com.google.common.collect.Maps; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.locks.ReentrantLock; + +/** + * Progress tracking for Kinesis Routine Load jobs. + * + * Kinesis uses sequence numbers instead of offsets like Kafka. + * A sequence number is a unique identifier for each record within a shard. + * Sequence numbers are string representations of 128-bit integers. + * + * Special position values: + * - TRIM_HORIZON: Start from the oldest record in the shard + * - LATEST: Start from the newest record (records arriving after the iterator is created) + * - Specific sequence number: Start from or after a specific sequence number + */ +public class KinesisProgress extends RoutineLoadProgress { Review Comment: done -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
