lasdf1234 commented on code in PR #12366:
URL: https://github.com/apache/gravitino/pull/12366#discussion_r3748118428
##########
api/src/main/java/org/apache/gravitino/secret/SecretUrn.java:
##########
@@ -69,6 +69,22 @@ public List<String> identifierSegments() {
return identifierSegments;
}
+ /**
+ * Returns the property key encoded as the last identifier segment.
+ *
+ * <p>Gravitino secret URNs end with the entity property key that stores the
URN (see {@link
+ * #buildWriteThrough}).
+ *
+ * @return the property key
+ * @throws IllegalArgumentException if this URN has no identifier segments
+ */
+ public String propertyKey() {
Review Comment:
Got. Remove throw exception logical. It's uncessary.
--
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]