Refactoring accessors using only getters and setters (#2657)
For many of these accessors that changed, the old version still exists (for
deprecation, i guess?) e.g.:
GetResponse
exists() -> isExists()
CountResponse
count() -> getCount()
SearchResponse
hits() -> getHits()
ClusterHealthResponse
status() -> getStatus()
This means that i could easily go back to v0.20.4 from 0.90.0.Beta1 once
i update my code to use the alternative accessor.
One, however, that i don't see is:
BuldResponse
items() vs getItems()
This means that i can't easily switch between versions without code changes.
Is there are reason why some of the accessors have changed and not others?
Refactoring accessors using only getters and setters (#2657)
For many of these accessors that changed, the old version still exists (for deprecation, i guess?) e.g.:
GetResponse
exists() -> isExists()
CountResponse
count() -> getCount()
SearchResponse
hits() -> getHits()
ClusterHealthResponse
status() -> getStatus()
This means that i could easily go back to v0.20.4 from 0.90.0.Beta1 once i update my code to use the alternative accessor.
One, however, that i don't see is:
BuldResponse
items() vs getItems()
This means that i can't easily switch between versions without code changes.
Is there are reason why some of the accessors have changed and not others?
Sorry, it seems that my project had not cleaned out properly!
I was updating my pom and moving from 0.20.4->0.90.0.Beta1 and back and
didn't see compilation issues even after a clean compile. Now i have
restarted eclipse, forced a clean maven update and can't find the old
methods.
Sorry again for false alarm,
Derry
On Wednesday, 20 March 2013 17:32:03 UTC, David Pilato wrote:
Hi Derry,
Forgive me if I don't understand what you said.
I can't see old versions in repo:
Refactoring accessors using only getters and setters (#2657)
For many of these accessors that changed, the old version still exists
(for deprecation, i guess?) e.g.:
GetResponse
exists() -> isExists()
CountResponse
count() -> getCount()
SearchResponse
hits() -> getHits()
ClusterHealthResponse
status() -> getStatus()
This means that i could easily go back to v0.20.4 from 0.90.0.Beta1 once
i update my code to use the alternative accessor.
One, however, that i don't see is:
BuldResponse
items() vs getItems()
This means that i can't easily switch between versions without code
changes.
Is there are reason why some of the accessors have changed and not others?
Derry
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.