[ 
https://issues.apache.org/jira/browse/SOLR-7595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shalin Shekhar Mangar updated SOLR-7595:
----------------------------------------
    Attachment: SOLR-7595.patch

This was slightly more complex because of the hierarchy. In order to make this 
work, I had to make the base class CollectionAdminRequest as abstract. Though 
this is a back-compat break but this class is marked as experimental.

I also changed many tests to make use of chaining but I didn't change in all 
places.

> Allow method chaining for all CollectionAdminRequest
> ----------------------------------------------------
>
>                 Key: SOLR-7595
>                 URL: https://issues.apache.org/jira/browse/SOLR-7595
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java, SolrJ
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: Trunk, 5.3
>
>         Attachments: SOLR-7595.patch
>
>
> Allow methods to be chained for all CollectionAdminRequests so that code like 
> the following can be written:
> {code}
> Create createCollectionRequest = new Create()
>               .setCollectionName("testasynccollectioncreation")
>               .setNumShards(1)
>               .setConfigName("conf1")
>               .setAsyncId("1001");
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to