Regarding the reloadFromQuery method -- 

Are you saying that I should first subclass CBLUITableSource
and then override the method?

On Sunday, March 16, 2014 2:07:18 PM UTC+8, archit agarwal wrote:
>
> I am not sure when this method should be called..
> and how do I access the _rows variable. 
>
> Also with respect to this - 
>
> *What I would do is*
> * emit([location, price], moveInDate)*
>
> *Then for each given location I’d query by*
> * startKey=[location, minPrice]*
> * endKey=[location, maxPrice]*
> *and then filter the results by comparing the value (the moveInDate) 
> against the date range.*
>
> when you say for each given location => how would I use a range of 
> locations?
> say location - A, C, X, Y, Z
>
> and I want A, X, Z only. 
>
>
>
> On Sunday, March 16, 2014 2:01:03 PM UTC+8, archit agarwal wrote:
>>
>> Are you referring to this - 
>>
>>
>> _datasource.query.rows
>>
>>
>>
>>
>> On Sunday, March 16, 2014 1:46:58 AM UTC+8, Jens Alfke wrote:
>>>
>>>
>>> On Mar 15, 2014, at 9:41 AM, archit agarwal <[email protected]> wrote:
>>>
>>> Can you give me an example of this method's usage - how can I use this 
>>> with datasource for this filtering? 
>>>
>>> - (void) reloadFromQuery 
>>>
>>>
>>> Modify that method to remove unwanted items from _rows right after it 
>>> assigns the new value to _rows.
>>>
>>> —Jens
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/e6de6993-f1ed-42b6-8474-0a8b30378c9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to