1515 * limitations under the License.
1616 */
1717
18- package org .apache .fluss .flink .tiering . committer ;
18+ package org .apache .fluss .client .tiering ;
1919
2020import org .apache .fluss .annotation .VisibleForTesting ;
2121import org .apache .fluss .client .metadata .MetadataUpdater ;
@@ -229,7 +229,22 @@ public void commit(
229229 }
230230 }
231231
232- void commit (
232+ /**
233+ * Registers a lake snapshot and its bucket offsets in Fluss.
234+ *
235+ * @param tableId the Fluss table ID
236+ * @param snapshotId the lake snapshot ID
237+ * @param lakeBucketTieredOffsetsPath the file containing tiered bucket offsets
238+ * @param readableLakeBucketTieredOffsetsPath the file containing readable bucket offsets, or
239+ * {@code null} if the snapshot is not readable
240+ * @param logEndOffsets the tiered log end offsets used for metrics reporting
241+ * @param logMaxTieredTimestamps the maximum tiered timestamps used for metrics reporting
242+ * @param earliestSnapshotIDToKeep the earliest snapshot ID to retain; {@code null} retains only
243+ * the latest snapshot, and {@link LakeCommitResult#KEEP_ALL_PREVIOUS} retains all previous
244+ * snapshots
245+ * @throws IOException if the snapshot cannot be committed to Fluss
246+ */
247+ public void commit (
233248 long tableId ,
234249 long snapshotId ,
235250 String lakeBucketTieredOffsetsPath ,
@@ -335,7 +350,7 @@ private CommitLakeTableSnapshotRequest toCommitLakeTableSnapshotRequest(
335350 commitLakeTableSnapshotRequest .addLakeTableSnapshotMetadata ();
336351 pbLakeTableSnapshotMetadata .setSnapshotId (snapshotId );
337352 pbLakeTableSnapshotMetadata .setTableId (tableId );
338- // tiered snapshot file path is equal to readable snapshot currently
353+ // Keep the tiered offsets path separate from the optional readable offsets path.
339354 pbLakeTableSnapshotMetadata .setTieredBucketOffsetsFilePath (tieredBucketOffsetsPath );
340355 if (readableBucketTieredOffsetsPath != null ) {
341356 pbLakeTableSnapshotMetadata .setReadableBucketOffsetsFilePath (
@@ -360,7 +375,7 @@ private CommitLakeTableSnapshotRequest toCommitLakeTableSnapshotRequest(
360375 }
361376
362377 @ VisibleForTesting
363- protected CommitLakeTableSnapshotRequest addLogEndOffsets (
378+ CommitLakeTableSnapshotRequest addLogEndOffsets (
364379 CommitLakeTableSnapshotRequest commitLakeTableSnapshotRequest ,
365380 long tableId ,
366381 long snapshotId ,
0 commit comments