Re: IndexType deprecation question

2019-12-02 Thread Joris Melchior
Okay, that is good feedback. I lean towards un-deprecating as well. Let me write a draft proposal for some changes so everyone can chime in and hopefully we'll have a workable target at the end of it. Thanks, Joris. On Mon, Dec 2, 2019 at 1:00 PM John Blum wrote: > My vote would be to

Re: IndexType deprecation question

2019-12-02 Thread John Blum
My vote would be to UNDEPRECATE the IndexType in Apache Geode. There are several codepaths in SDG that use the IndexType to make certain decisions. I also think having an Enum is much more flexible than having a method per Index type, particularly since you can use Enum values in switch

Re: IndexType deprecation question

2019-12-02 Thread Jason Huynh
Hi Joris, Just some guesses and no actual answer from me here: The deprecation of the index type was before HASH indexes were created, and my guess was due to the introduction of the "new at the time" query service apis (the javadoc:@deprecated As of 6.6.1. Check {@link QueryService} for

Re: IndexType deprecation question

2019-12-02 Thread Joris Melchior
Hi Jason, At this point it is not about creating but returning the Region with an indicator in the management API without using deprecated parts. Under the covers the QueryService java api still uses the IndexType ENUM and had assumed that an alternative would be provided when something is marked

Re: IndexType deprecation question

2019-12-02 Thread Jason Huynh
Hi Joris, How are you creating the index? If using the QueryService java api, there should be createKeyIndex() and createIndex() methods. These methods should create the primary key index and the functional index. I am not sure if there is an alternative in gfsh... it might still be using the

Re: IndexType deprecation question

2019-11-29 Thread Joris Melchior
Thanks John. I'm trying to use it on the server side for the management API so unfortunately the Spring wrapper is not an option. Hopefully someone can provide some insight into the deprecation background once all the turkey and stuffing has been digested. On Fri, Nov 29, 2019 at 2:16 PM John

Re: IndexType deprecation question

2019-11-29 Thread John Blum
FYI... if you are using *Spring Data for Apache Geode* (SDG; spring-data-geode), then there is an SDG Index enum type [1] wrapping the deprecated Apache Geode Index enum type

IndexType deprecation question

2019-11-29 Thread Joris Melchior
Hi All, I notice that the ENUM org.apache.geode.cache.query.IndexType has been deprecated but can't find what to use instead of this ENUM if I wanted to use a non-deprecated alternative. I understand that HASH indexes are no longer recommended but the other types (PRIMARY_KEY, FUNCTIONAL) are