jerqi commented on code in PR #4235: URL: https://github.com/apache/gravitino/pull/4235#discussion_r1687884795
########## clients/client-java/src/main/java/org/apache/gravitino/client/SupportsTagOperations.java: ########## @@ -0,0 +1,127 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.gravitino.client; + +import com.google.common.base.Preconditions; +import java.util.Arrays; +import java.util.Collections; +import java.util.Locale; +import org.apache.commons.lang3.StringUtils; +import org.apache.gravitino.MetadataObject; +import org.apache.gravitino.dto.requests.TagsAssociateRequest; +import org.apache.gravitino.dto.responses.NameListResponse; +import org.apache.gravitino.dto.responses.TagListResponse; +import org.apache.gravitino.dto.responses.TagResponse; +import org.apache.gravitino.exceptions.NoSuchTagException; +import org.apache.gravitino.rest.RESTUtils; +import org.apache.gravitino.tag.SupportsTags; +import org.apache.gravitino.tag.Tag; + +/** + * The implementation of {@link SupportsTags}. This interface will be mixed into catalog, schema, + * table, fileset and topic to provide tag operations for these metadata objects + */ +interface SupportsTagOperations extends SupportsTags { + + /** @return The name of the metalake. */ + String metalakeName(); + + /** @return The metadata object. */ + MetadataObject metadataObject(); + + /** @return The REST client. */ + RESTClient restClient(); Review Comment: LGTM overall. Just feel concerned about making the method `restClient` public. -- 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]
