You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2024/11/04 22:30:00 UTC
[jira] [Resolved] (SOLR-17534) Add ClusterState.getCollectionNames
[ https://issues.apache.org/jira/browse/SOLR-17534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley resolved SOLR-17534.
---------------------------------
Fix Version/s: 9.8
Resolution: Fixed
> 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
> Fix For: 9.8
>
> 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