KyleLin0927 commented on code in PR #7167:
URL: https://github.com/apache/gravitino/pull/7167#discussion_r2111730844
##########
api/src/main/java/org/apache/gravitino/MetadataObjects.java:
##########
@@ -38,6 +38,22 @@ public class MetadataObjects {
private MetadataObjects() {}
+ /**
+ * Build the MetadataObject through metadataType and metadataName.
+ *
+ * @param metadataType metadata type
+ * @param metadataName metadata NameIdentifier
+ * @return MetadataObject
+ */
+ public static MetadataObject of(MetadataObject.Type metadataType,
NameIdentifier metadataName) {
Review Comment:
`NameIdentifierUtils` and `MetadataObjectUtils` are indeed helpful, but
since they are located in the core module and this logic is currently in the
api module, introducing a dependency from api to core would create a circular
dependency.
--
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]