Please take a look at HFileReaderV2 ctor (line 159 in trunk):

    avgKeyLen = Bytes.toInt(fileInfo.get(FileInfo.AVG_KEY_LEN));

Cheers


On Wed, May 21, 2014 at 6:57 PM, ch huang <justlo...@gmail.com> wrote:

> hi,maillist:
>          i observe command " hbase hfile -m -f
>
> /hbase/pipe_url/da8687017e0d5ef0a274153426127ef3/info/9efda5a9f07e47248af4e998b42afafd"
> output ,and i do not know how to calculate the key length,
>
> it's say
> firstKey=2-F9150DB8A200991BCCA59B5D4E554181/info:url/1400052220386/Put
>
> and
> avgKeyLen=53
>
> but
> # echo 2-F9150DB8A200991BCCA59B5D4E554181|wc -c
> 35
> # echo 2-F9150DB8A200991BCCA59B5D4E554181/info:url/1400052220386/Put|wc -c
> 62
> none match the number 53,why?
>

Reply via email to