What is the magic number 4 for in proximity fetch?

29 views
Skip to first unread message

no

unread,
Nov 23, 2010, 9:48:30 PM11/23/10
to javageomodel-discuss
>>> mobi.myapp.web.ThingsRepo getThingsNear: 1 results found but want 4 results, continuing search.

Why do we need to find 4 things?

Alexandre Gellibert

unread,
Nov 27, 2010, 6:55:14 AM11/27/10
to javageomod...@googlegroups.com
'4' is the max number of results you probably gave in parameter.

If you call GeocellManager.proximityFetch with maxResults = 4 in parameters, then it will print this.

Below is an extract of the code line executed :
            // We don't have enough items yet, keep searching.
            if(results.size() < maxResults) {
                logger.log(Level.FINE,  results.size()+" results found but want "+maxResults+" results, continuing search.");
                continue;

            }


On Wed, Nov 24, 2010 at 3:48 AM, no <orton...@gmail.com> wrote:
>>> mobi.myapp.web.ThingsRepo getThingsNear: 1 results found but want 4 results, continuing search.

Why do we need to find 4 things?




--
Alexandre Gellibert
alexandre...@gmail.com
Reply all
Reply to author
Forward
0 new messages