[
https://issues.apache.org/jira/browse/HBASE-7233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack updated HBASE-7233:
-------------------------
Attachment: 7233v3_encoders.txt
This patch adds org.apache.hbase.io.codec. In this package is Decoder and
Encoder Interface. They are very simple (I was adding crap like Contexts' and
I also had them subclassing CellOutputScanner for a while, etc., but in the end
stripped the stuff back to basic form because I think will learn what is really
needed when go to use them rpc'ing). There are two codecs. One that writes
out KeyValues and reads them back. Ditto for writing Cells (We need a
CellFactory, something to make up a Cell from component parts. For now using
KeyValue constructor).
It puts CellOutputStream and CellScanner into org.apache.hbase.io.
Comments appreciated. Wondering in particular if Interface will work for
Encoders that compress; i.e. PrefixTree. Next step would be making FastDiff
or Prefix compression work against the Interface.
Questions that came up:
* [~mcorgan] Do you you know if your vint stuff is faster than what is in
hadoop in WritableUtils.vint?
* I have a 'finish' method on the encoder so can write out end-of-encoding
markers. This might be obnoxious. Does make it so you don't need to know
length ahead of time.
> Serializing KeyValues
> ---------------------
>
> Key: HBASE-7233
> URL: https://issues.apache.org/jira/browse/HBASE-7233
> Project: HBase
> Issue Type: Bug
> Reporter: stack
> Assignee: stack
> Priority: Blocker
> Fix For: 0.96.0
>
> Attachments: 7233sketch.txt, 7233.txt, 7233-v2.txt,
> 7233v3_encoders.txt
>
>
> Undo KeyValue being a Writable.
--
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