File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
server/src/main/java/org/opensearch/action/pagination Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,11 @@ public interface PaginationStrategy<T> {
44
44
List <T > getRequestedEntities ();
45
45
46
46
/**
47
- *
48
- * Utility method to get list of indices filtered as per {@param filterPredicate} and the sorted according to {@param comparator}.
47
+ * Utility method to get list of indices filtered and sorted as per the provided parameters.
48
+ * @param clusterState state consisting of all the indices to be filtered and sorted.
49
+ * @param filterPredicate predicate to be used for filtering out the required indices.
50
+ * @param comparator comparator to be used for sorting the already filtered list of indices.
51
+ * @return list of filtered and sorted IndexMetadata.
49
52
*/
50
53
static List <IndexMetadata > getSortedIndexMetadata (
51
54
final ClusterState clusterState ,
@@ -56,8 +59,10 @@ static List<IndexMetadata> getSortedIndexMetadata(
56
59
}
57
60
58
61
/**
59
- *
60
- * Utility method to get list of indices sorted as per {@param comparator}.
62
+ * Utility method to get list of sorted indices.
63
+ * @param clusterState state consisting of indices to be sorted.
64
+ * @param comparator comparator to be used for sorting the list of indices.
65
+ * @return list of sorted IndexMetadata.
61
66
*/
62
67
static List <IndexMetadata > getSortedIndexMetadata (final ClusterState clusterState , Comparator <IndexMetadata > comparator ) {
63
68
return clusterState .metadata ().indices ().values ().stream ().sorted (comparator ).collect (Collectors .toList ());
You can’t perform that action at this time.
0 commit comments