Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for TCompactProtocol #70

Merged
merged 2 commits into from
Oct 14, 2014
Merged

Add support for TCompactProtocol #70

merged 2 commits into from
Oct 14, 2014

Conversation

johnseekins
Copy link
Contributor

The difference between TBinaryAccelerated and TCompact (from Wikipedia):
TBinaryProtocol – A straightforward binary format, simple, but not optimized for space efficiency. Faster to process than the text protocol but more difficult to debug.
TCompactProtocol – More compact binary format; typically more efficient to process as well

Seems like this would be useful. It does, like framed transports, require configuration changes on the server end as well.

@wbolster
Copy link
Member

wbolster commented Oct 9, 2014

Great, this looks good in general. Few questions/remarks:

  • Does the HBase Thrift server support this out of the box?
  • Could you add a 'version added' note to the docstrings (just like for other flags)?

@johnseekins
Copy link
Contributor Author

I think it supports it from 0.94 on. Or where ever framed transports were supported from. Thrift documentation is...spotty on the topic.
I'll update the code.

@johnseekins
Copy link
Contributor Author

You do have to add the "-c" flag for a stand-alone thrift server or hbase.regionserver.thrift.compact needs to be set to true on an integrated server.

@wbolster wbolster merged commit f4321ce into python-happybase:master Oct 14, 2014
wbolster added a commit that referenced this pull request Oct 14, 2014
@wbolster
Copy link
Member

Thanks @johnseekins; I've merged your PR with a few minor changes stacked on top in 15b5311.

I don't have any plans for a 0.9 release currently; do you want to me to release 0.9?

@wbolster wbolster added this to the 0.9 milestone Oct 14, 2014
@wbolster wbolster self-assigned this Oct 14, 2014
@wbolster
Copy link
Member

FYI, I've released HappyBase 0.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants