Re: a question about append operation of HFile.Writer

2012-03-06 Thread Mikael Sitruk
Hi, I think that your flow for test is not correct The Hfile is immutable, it is (from my understanding ) the result of the memstore which is sorted lexicographically. The hfile is created at flush time. Hfile may have different size, but with compaction running they are merged and sorted (mergesor

a question about append operation of HFile.Writer

2012-03-06 Thread yonghu
Hello, One HFile consists of many blocks. Suppose we have two blocks, b1 and b2. The size of each block is 2K. In b1, we have two key-value pairs, whose keys are t1 and t2, separately. Each key-value pair is 1K. So the b1 is full. Suppose that now we insert a new tuple which key is also t1. The HB