I am investigation Stargate to provide REST access and ran into an
interesting quesiton.  I have a simple test table and when I scan it within
the hbase shell, I got the following result.

hbase(main):028:0> scan 'test'
ROW
COLUMN+CELL

 row1                        column=data:1, timestamp=1278703763205,
value=value1
 row1                        column=data:a, timestamp=1278969106700,
value=a
 row2                        column=data:2, timestamp=1278703772510,
value=value2
 row2                        column=data:3, timestamp=1278703778936,
value=value3
 row3                        column=data:1, timestamp=1279318319309,
value=row3
3 row(s) in 0.0610 seconds

Issuing http://localhost:58080/test/row* returns

<CellSet>
<Row key="cm93MQ==">
<Cell timestamp="1278703763205" column="ZGF0YTox">dmFsdWUx</Cell>
<Cell timestamp="1278969106700" column="ZGF0YTph">YQ==</Cell>
</Row>
<Row key="cm93Mg==">
<Cell timestamp="1278703772510" column="ZGF0YToy">dmFsdWUy</Cell>
<Cell timestamp="1278703778936" column="ZGF0YToz">dmFsdWUz</Cell>
</Row>
<Row key="cm93Mw==">
<Cell timestamp="1279318319309" column="ZGF0YTox">cm93Mw==</Cell>
</Row>
</CellSet>

Why are the row key, column and value data encoded?  How can they be return
as text?

Thanks in advance.

Reply via email to