You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/11/04 18:04:00 UTC

[jira] [Commented] (SOLR-17534) Add ClusterState.getCollectionNames

    [ https://issues.apache.org/jira/browse/SOLR-17534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17895383#comment-17895383 ] 

ASF subversion and git services commented on SOLR-17534:
--------------------------------------------------------

Commit cd681c073c3c0201aa49a3f243bb284c9880f26c in solr's branch refs/heads/main from David Smiley
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=cd681c073c3 ]

SOLR-17534: Add ClusterState.getCollectionNames (#2826)

Refactoring to introduce getCollectionNames(). The motivation is to reduce callers of getCollectionsMap and getCollectionStates, which will go away soon.

> Add ClusterState.getCollectionNames
> -----------------------------------
>
>                 Key: SOLR-17534
>                 URL: https://issues.apache.org/jira/browse/SOLR-17534
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>            Reporter: David Smiley
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Refactoring to introduce getCollectionNames(). The motivation is to reduce callers of getCollectionsMap and getCollectionStates, which I want to deprecate & replace with something else in another JIRA.
> {code:java}
>   /**
>    * The collection names. Like a Set but might not implement it. Immutable; non-null. Some names
>    * returned might not resolve via {@link #getCollectionOrNull(String)}, so consider this a close
>    * approximation.
>    */
>   public Collection<String> getCollectionNames() {
>     // should we document we are sorted too?  Albeit that ties our hands.
>     return immutableCollectionStates.keySet();
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org