On 12/02/2011, at 1:38 PM, Bisht, Pradeep wrote: > sorry sent too early. The problem is that JudyLNext (JLN) performs an > exclusive search. so after doing JLF when I'm looking for an index say 40 > using JLN it returns me 41 even if 40 exists. Now at this point I think I > have no way but to do JLP/JLL to check the one previous to make sure it is > not 40 or contains 40 (as it is a range). so essentially I have to do a > JLP/JLL for every JLN. correct?
Use JudyLFirst for a nonexclusive search. Don't be fooled by the names :) First means >= key Next means >key Last means <= key Prev means < key Get means == key It's a bit weird, Dougs naming, but it is very consistent and predictable what the functions do when you get the hang of it. -- john skaller [email protected] ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Judy-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/judy-devel
