[
https://issues.apache.org/jira/browse/HBASE-6592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack updated HBASE-6592:
-------------------------
Attachment: 6592v3.txt
I did an edit on the help for scan and get. Otherwise the patch is as Jie
posted.
I tried it. It looks nice:
{code}
hbase(main):005:0> put 'x', 'x', 'x:x', "\000\000\000\001"
0 row(s) in 0.0910 seconds
hbase(main):006:0> scan 'x'
ROW
COLUMN+CELL
x
column=x:x, timestamp=1348004165894, value=\x00\x00\x00\x01
1 row(s) in 0.1050 seconds
hbase(main):007:0> get 'x', 'x'
COLUMN
CELL
x:x
timestamp=1348004165894, value=\x00\x00\x00\x01
1 row(s) in 0.0590 seconds
hbase(main):008:0> get 'x', 'x', {COLUMN => "x:x:toInt"}
COLUMN
CELL
x:x
timestamp=1348004165894, value=1
1 row(s) in 0.0650 seconds
hbase(main):009:0> get 'x', 'x', {COLUMN =>
"x:x:c(org.apache.hadoop.hbase.util.Bytes).toInt"}
COLUMN
CELL
x:x
timestamp=1348004165894, value=1
1 row(s) in 0.0220 seconds
{code}
> [shell] Add means of custom formatting output by column
> -------------------------------------------------------
>
> Key: HBASE-6592
> URL: https://issues.apache.org/jira/browse/HBASE-6592
> Project: HBase
> Issue Type: New Feature
> Components: shell
> Reporter: stack
> Priority: Minor
> Labels: noob
> Fix For: 0.96.0
>
> Attachments: 6592v3.txt, hbase-6592.patch, hbase-6592-v2.patch,
> hbase-6952-v1.patch
>
>
> See Jacques suggestion toward end of this thread for how we should allow
> adding a custom formatter per column to use outputting column content in
> shell:
> http://search-hadoop.com/m/2WxUB1fuxL11/Printing+integers+in+the+Hbase+shell&subj=Printing+integers+in+the+Hbase+shell
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
