Hi, Michal, You don't need to convert a tablex object to a table object. When you try to answer a query and a .sp file is needed, the .sp file will be extended.
Conceptually, there is a separation between primary data and secondary data. The index files and the others (.sp, .dic, .int) are secondary data. It is fine to let the secondary data files become out of date as the primary data files are modified. These secondary files will be brought up to date when necessary. If you really want to, you could create an ibis::part on the data directory and invoke the function buildIndexes on the part object. The thing to watch out for is that you might be writing data to this directory using tablex::write and at the same time trying to build indexes. Good luck. John On 1/26/14, 2:17 AM, Michal Kozubík wrote: > Yes, it's all about .sp files. > > So you're saying that all I need to do is rebuild indexes? > > Than there is one more problem. I have data in ibis::tablex object but > I didn't find any function to rebuild indexes for this object. The > only one I have found is for ibis::table - so I was thinking about > converting tablex to table with "toTable()". But is there any function > similar to tablex.write for table (i found "backup" but I'm not sure > if it does the same as "write")? Or function for converting table > (with rebuilded indexes) back to tablex? > > Michal > > Dne 26.1.2014 01:50, K. John Wu napsal(a): >> Are you willing to describe your trouble with .sp files? >> >> If you have appended the main data files, your .sp files will be >> updated automatically next time you run any FastBit command line tools >> or invoke any indexing or querying functions. >> >> John >> >> >> On 1/25/14, 2:37 AM, Michal Kozubík wrote: >>> Hi, >>> >>> Yes, -a option for ibis seems working well, but I have a tool doing >>> some other things and merging is one of them. So better way would be >>> merge folders inside this tool, without running ibis separately. >>> >>> But thanks for your reply, >>> Michal >>> >>> Dne 24.1.2014 19:15, K. John Wu napsal(a): >>>> Hi, Michal, >>>> >>>> Yes, Luca's fbmerge is a reason tool for merging two data >>>> directories. >>>> I believe its functionality is close to the 'ibis' with -append >>>> option. You might be able to get 'ibis -append' to do what you want >>>> without additional work. The basic usage is >>>> >>>> ibis -a input-dir output-dir >>>> >>>> (where -append is shortened to be just -a). >>>> >>>> John >>>> >>>> >>>> On 1/24/14, 1:47 AM, Michal Kozubík wrote: >>>>> Hi John, >>>>> >>>>> I have a question about merging fastbit data. I have a lot of >>>>> folders >>>>> containing fastbit data and I'd like to merge them together. >>>>> >>>>> About 6 months ago I discovered Luca Deri's fbmerge ( >>>>> https://github.com/gingi/fastbit/tree/master/contrib/fbmerge ). It >>>>> worked well except a few bugs that i fixed. >>>>> >>>>> But now there are some troubles with blob .sp files and before I try >>>>> to fix it I'd like to ask you if there is a better (more effective) >>>>> way to do this? I mean if there is some class/function etc. >>>>> especially >>>>> for this purpose? >>>>> >>>>> Thank you very much for you time, >>>>> Michal Kozubík > _______________________________________________ FastBit-users mailing list [email protected] https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
