Dear Phan Xuan Giang,
Based on your code fragment, I am not sure I know exactly what you are
asking about. Would you mind tell us more about the errors you
encounter? Better yet, give me a tar that I can compile and run. The
point is to make sure I can easily reproduce your problem.
John
On 1/10/12 2:02 AM, Phan Xuan Giang wrote:
> Hi,
>
> My code to append c_kinhdo2 to c_kinhdo :
> ibis::part*tbl = new
> ibis::part("c:\\DB\\1mil\\2011_12_21_10_50_01", static_cast<const
> char*>(0));
> ibis::column *c_kinhdo = tbl->getColumn("kinhdo");
>
> ibis::part*tbl2 = new
> ibis::part("c:\\DB\\1mil\\2011_12_21_14_03_36", static_cast<const
> char*>(0));
> ibis::column *c_kinhdo2 = tbl2->getColumn("kinhdo");
>
> const char* dt = "c:\\DB\\1mil\\2011_12_21_10_50_01\\KinhDo";
> const char* df = "c:\\DB\\1mil\\2011_12_21_14_03_36\\KinhDo";
> const uint32_t nold = c_kinhdo->elementSize();
> const uint32_t nnew = nold + c_kinhdo2->elementSize();
> uint32_t nbuf = 1024;
> char* buf = new char[1024];
> /// Append new data in directory df to the end of existing data in dt.
> c_kinhdo->append(dt, df, nold,nnew, nbuf, buf);
>
> But it doesn't work. Please show me why or another way to append column.
> Thanks for help.
>
> Regards,
> Phan Xuan Giang
>
>
>
> _______________________________________________
> 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