Hi, Kishore,

Please check out SVN revision 621.  The new function is
FastBit::get_result_row_ids.

Let me know if it works for you or not.

John


On 3/30/13 10:46 PM, kishore g wrote:
> Thanks John, that was exactly what I was looking for. Any chance of
> exposing this in the jni wrapper?
> 
> thanks,
> Kishore G
> 
> 
> On Sat, Mar 30, 2013 at 8:16 PM, K. John Wu <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hi, Kishore,
> 
>     If you use the ibis::query class, there is a function getHitRows that
>     will return the row ids.
> 
>     If you want to get at the bit vector directly, you can use the
>     function getHitVector.
> 
>     John
> 
> 
>     On 3/30/13 10:09 AM, kishore g wrote:
>     > Hi,
>     >
>     > Is there a efficient way to retrieve the bitvector after
>     applying the
>     > predicates.
>     >
>     > One way would be to add additional row_id column to the data and
>     then
>     > use select row_id where col1=v1 col2=v2 and iterate over the row_id
>     > but this is inefficient because it accesses the row_id col on
>     disk to
>     > retrieve the values. Instead we want to simply get the bit positions
>     > that are set to 1 after evaluating the predicates.
>     >
>     > Are there api's that allow me to get the resultant bit vector after
>     > evaluating  the predicates?
>     >
>     > thanks,
>     > Kishore G
>     >
>     >
>     > _______________________________________________
>     > FastBit-users mailing list
>     > [email protected] <mailto:[email protected]>
>     > https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
>     >
> 
> 
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to