Skip to content

Commit

Permalink
apache#4873 support list group add javaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuQhahah committed Sep 26, 2024
1 parent ed9cc9d commit 2e24f4b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,20 @@ public Group getGroup(String group) throws NoSuchGroupException, NoSuchMetalakeE
}


/**
* List the groups.
* @return The Group list
* @throws NoSuchMetalakeException If the Metalake with the given name does not exist.
*/
public Group[] listGroups(){
return getMetalake().listGroups();
}

/**
* List the group names.
* @return The group names list.
* @throws NoSuchMetalakeException If the Metalake with the given name does not exist.
*/
public String[] listGroupNames(){
return getMetalake().listGroupNames();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ public Group getGroup(String group) throws NoSuchGroupException, NoSuchMetalakeE
* Lists the groups
*
* @return The Group list
* @throws NoSuchMetalakeException If the Metalake with the given name does not exist.
*/
public Group[] listGroups() {
Map<String,String> params = new HashMap<>();
Expand All @@ -648,6 +649,7 @@ public Group[] listGroups() {
* Lists the group names
*
* @return The Group Name List
* @throws NoSuchMetalakeException If the Metalake with the given name does not exist.
*/
public String[] listGroupNames(){
NameListResponse resp = restClient.get(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,19 @@ Group getGroup(String metalake, String group)
/**
* List groups
*
* @param metalake The Metalake of the Group.
* @return The list of groups
* @throws NoSuchMetalakeException If the Metalake with the given name does not exist.
*/
Group[] listGroup(String metalake);

/**
* List group names
*
* @param metalake The Metalake of the Group.
* @return The list of group names
* @throws NoSuchMetalakeException If the Metalake with the given name does not exist.
*/
String[] listGroupNames(String metalake);

/**
Expand Down

0 comments on commit 2e24f4b

Please sign in to comment.