adoroszlai commented on a change in pull request #3200:
URL: https://github.com/apache/ozone/pull/3200#discussion_r830912922



##########
File path: 
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneKey.java
##########
@@ -93,6 +113,20 @@ public OzoneKey(String volumeName, String bucketName,
     this.replicationConfig = replicationConfig;
   }
 
+  @SuppressWarnings("parameternumber")
+  public OzoneKey(String volumeName, String bucketName,
+                  String keyName, long size, long creationTime,
+                  long modificationTime, ReplicationConfig replicationConfig,
+                  Map<String, String> metadata) {
+    this.volumeName = volumeName;
+    this.bucketName = bucketName;
+    this.name = keyName;
+    this.dataSize = size;
+    this.creationTime = Instant.ofEpochMilli(creationTime);
+    this.modificationTime = Instant.ofEpochMilli(modificationTime);
+    this.replicationConfig = replicationConfig;

Review comment:
       ```suggestion
       this(volumeName, bucketName, keyName, size, creationTime,
           modificationTime, replicationConfig);
   ```

##########
File path: 
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneKey.java
##########
@@ -76,6 +80,22 @@ public OzoneKey(String volumeName, String bucketName,
             ReplicationFactor.valueOf(replicationFactor));
   }
 
+  @SuppressWarnings("parameternumber")
+  public OzoneKey(String volumeName, String bucketName,
+                  String keyName, long size, long creationTime,
+                  long modificationTime, ReplicationType type,
+                  int replicationFactor, Map<String, String> metadata) {

Review comment:
       I think we can omit this constructor (with type and factor), it should 
be deprecated in favor of `ReplicationConfig` right away.




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

Reply via email to