Copilot commented on code in PR #1605:
URL: https://github.com/apache/fluss/pull/1605#discussion_r2313957972


##########
fluss-common/src/main/java/org/apache/fluss/record/MemoryLogRecordsCompactedBuilder.java:
##########
@@ -0,0 +1,77 @@
+/*
+ * 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.fluss.record;
+
+import org.apache.fluss.annotation.VisibleForTesting;
+import org.apache.fluss.memory.AbstractPagedOutputView;
+import org.apache.fluss.row.compacted.CompactedRow;
+
+import java.io.IOException;
+
+import static org.apache.fluss.record.LogRecordBatch.CURRENT_LOG_MAGIC_VALUE;
+
+/**
+ * Default builder for {@link MemoryLogRecords} of log records in {@link
+ * org.apache.fluss.metadata.LogFormat#COMPACTED} format.

Review Comment:
   The Javadoc comment should use the actual qualified class name instead of a 
generic reference. Use `{@link LogFormat#COMPACTED}` instead of `{@link 
org.apache.fluss.metadata.LogFormat#COMPACTED}`.
   ```suggestion
   import org.apache.fluss.metadata.LogFormat;
   
   import java.io.IOException;
   
   import static org.apache.fluss.record.LogRecordBatch.CURRENT_LOG_MAGIC_VALUE;
   
   /**
    * Default builder for {@link MemoryLogRecords} of log records in {@link 
LogFormat#COMPACTED} format.
   ```



##########
fluss-common/src/main/java/org/apache/fluss/record/MemoryLogRecordsIndexedBuilder.java:
##########
@@ -19,49 +19,17 @@
 
 import org.apache.fluss.annotation.VisibleForTesting;
 import org.apache.fluss.memory.AbstractPagedOutputView;
-import org.apache.fluss.memory.MemorySegment;
-import org.apache.fluss.memory.MemorySegmentOutputView;
-import org.apache.fluss.metadata.LogFormat;
-import org.apache.fluss.record.bytesview.BytesView;
-import org.apache.fluss.record.bytesview.MultiBytesView;
 import org.apache.fluss.row.indexed.IndexedRow;
-import org.apache.fluss.utils.crc.Crc32C;
 
 import java.io.IOException;
 
-import static org.apache.fluss.record.DefaultLogRecordBatch.BASE_OFFSET_LENGTH;
-import static org.apache.fluss.record.DefaultLogRecordBatch.CRC_OFFSET;
-import static 
org.apache.fluss.record.DefaultLogRecordBatch.LAST_OFFSET_DELTA_OFFSET;
-import static org.apache.fluss.record.DefaultLogRecordBatch.LENGTH_LENGTH;
-import static 
org.apache.fluss.record.DefaultLogRecordBatch.RECORD_BATCH_HEADER_SIZE;
-import static org.apache.fluss.record.DefaultLogRecordBatch.SCHEMA_ID_OFFSET;
 import static org.apache.fluss.record.LogRecordBatch.CURRENT_LOG_MAGIC_VALUE;
-import static org.apache.fluss.record.LogRecordBatch.NO_BATCH_SEQUENCE;
-import static org.apache.fluss.record.LogRecordBatch.NO_WRITER_ID;
-import static org.apache.fluss.utils.Preconditions.checkArgument;
 
 /**
- * Default builder for {@link MemoryLogRecords} of log records in {@link 
LogFormat#INDEXED} format.
+ * Default builder for {@link MemoryLogRecords} of log records in {@link
+ * org.apache.fluss.metadata.LogFormat#INDEXED} format.

Review Comment:
   The Javadoc comment should use the actual qualified class name instead of a 
generic reference. Use `{@link LogFormat#INDEXED}` instead of `{@link 
org.apache.fluss.metadata.LogFormat#INDEXED}`.



-- 
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]

Reply via email to