ajantha-bhat commented on code in PR #8909:
URL: https://github.com/apache/iceberg/pull/8909#discussion_r1420222262


##########
nessie/src/main/java/org/apache/iceberg/nessie/NessieIcebergClient.java:
##########
@@ -142,15 +148,27 @@ private UpdateableReference loadReference(String 
requestedRef, String hash) {
   }
 
   public List<TableIdentifier> listTables(Namespace namespace) {
+    return listContents(namespace, Content.Type.ICEBERG_TABLE);
+  }
+
+  public List<TableIdentifier> listViews(Namespace namespace) {
+    return listContents(namespace, Content.Type.ICEBERG_VIEW);
+  }
+
+  /** Lists Iceberg table or view from the given namespace */
+  protected List<TableIdentifier> listContents(Namespace namespace, 
Content.Type type) {

Review Comment:
   In the `NessieCatalog` itself I have some common code for content which 
calls these protected classes. 
   
   If I doesn't have common code in `NessieCatalog`, it will be code 
duplication. 
   For example see, `NessieCatalog.renameContent()`



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to