jerqi commented on code in PR #7167:
URL: https://github.com/apache/gravitino/pull/7167#discussion_r2111182469
##########
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:
You can refer to NameIdentifierUtils and MetadataObjectUtils. There are the
convention methods between entity and metadataobject.
--
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]