Hi, Georgiy,
Good suggestion. Your code will be incorporated into the our source
code distribution in a few hours -- we are in the middle of some
regression testing on a FreeBSD system.
Thanks.
John
On 5/21/2010 7:32 AM, Zhytar, Georgiy wrote:
> Hi,
>
> Thanks for the great job you are doing on developing and maintaining
> that awesome project.
>
> Please can you add this functions for C API to the main branch:
>
> *capi.h*
>
> /// Reorder all the columns in the partition to obtain better index
> compression and query performance.
>
> FASTBIT_DLLSPEC long fastbit_reorder_partition(const char *dir);
>
> *capi.cpp *
>
> extern "C" long fastbit_reorder_partition(const char *dir) {
>
> long ierr = 0;
>
> ibis::part *t;
>
> if (_capi_tlist == 0) {
>
> fastbit_init(0);
>
> if (_capi_tlist == 0) {
>
> ierr = -1;
>
> return ierr;
>
> }
>
> }
>
> t = _capi_tlist->find(dir);
>
> if (t != 0)
>
> ierr = t->reorder();
>
> else
>
> ierr = -2;
>
> return ierr;
>
> } // fastbit_columns_in_partition
>
> Thanks
>
> --Georgiy Zhytar
>
>
>
> _______________________________________________
> FastBit-users mailing list
> [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