Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing inline javadocs usage in PaginationStrategy #16428

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ public interface PaginationStrategy<T> {
List<T> getRequestedEntities();

/**
*
* Utility method to get list of indices filtered as per {@param filterPredicate} and the sorted according to {@param comparator}.
* Utility method to get list of indices filtered and sorted as per the provided parameters.
* @param clusterState state consisting of all the indices to be filtered and sorted.
* @param filterPredicate predicate to be used for filtering out the required indices.
* @param comparator comparator to be used for sorting the already filtered list of indices.
* @return list of filtered and sorted IndexMetadata.
*/
static List<IndexMetadata> getSortedIndexMetadata(
final ClusterState clusterState,
Expand All @@ -56,8 +59,10 @@ static List<IndexMetadata> getSortedIndexMetadata(
}

/**
*
* Utility method to get list of indices sorted as per {@param comparator}.
* Utility method to get list of sorted indices.
* @param clusterState state consisting of indices to be sorted.
* @param comparator comparator to be used for sorting the list of indices.
* @return list of sorted IndexMetadata.
*/
static List<IndexMetadata> getSortedIndexMetadata(final ClusterState clusterState, Comparator<IndexMetadata> comparator) {
return clusterState.metadata().indices().values().stream().sorted(comparator).collect(Collectors.toList());
Expand Down
Loading