fmorg-git commented on code in PR #12112:
URL: https://github.com/apache/ozone/pull/12112#discussion_r4649050431
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java:
##########
@@ -581,28 +583,16 @@ public OzoneOutputStream createKey(String key, long size,
}
/**
- * Creates a new key in this bucket and places it according to the given
storage
- * policy.
+ * Creates a new key in the bucket.
*
- * @param key Name of the key to be created.
- * @param size Size of the data the key will hold.
- * @param replicationConfig Replication configuration.
- * @param keyMetadata Custom key metadata.
- * @param tags Tags used for S3 object tags.
- * @param keyStoragePolicy Storage policy for the key, or null to inherit
this
- * bucket's policy.
+ * @param key Name of the key to be created.
+ * @param options Size, replication config, metadata, tags, derived key
piggybacking and storage policy of the key
* @return OzoneOutputStream to which the data has to be written.
* @throws IOException
*/
- @SuppressWarnings("checkstyle:parameternumber")
- public OzoneOutputStream createKey(String key, long size,
- ReplicationConfig replicationConfig,
- Map<String, String> keyMetadata,
- Map<String, String> tags,
- StoragePolicy keyStoragePolicy)
- throws IOException {
- return proxy
- .createKey(volumeName, name, key, size, replicationConfig,
keyMetadata, tags, keyStoragePolicy);
+ public OzoneOutputStream createKey(String key, CreateKeyOptions options)
throws IOException {
Review Comment:
is an override for `OzoneBucketStub` needed for this method?
--
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]