Re: decoding types within the hbase shell

2011-01-16 Thread Ted Yu
Some code from Andrey: ## function converts any value to bytes (using Bytes class methods) def toBytes(val) String.from_java_bytes(Bytes. toBytes(val)) end ## example analog of the "select * from where key" def fetch(table, id, args = {}) key = Writables.getBytes(BsnId.new(id)) print Byte

decoding types within the hbase shell

2011-01-16 Thread Max Garfinkel
Hi All, I think this is a stupid question but I cant seem to find an answer one way or the other anywhere else so here goes. Is it possible to decode the values stored in columns to something other than string when performing a scan using the hbase shell? To be really clear I have a table con