Coder Social home page Coder Social logo

Comments (4)

wbolster avatar wbolster commented on August 13, 2024

Well, Thrift types are of little use here. Thrift types are only used in the underlying Thrift API. Any data stored in HBase is defined as a binary string in that API, so this should really be taken care of in the application. You can use any data serialisation format you like, including strings created with struct, JSON, MessagePack, Protocol Buffers, or anything you might come up with.

from happybase.

budlight avatar budlight commented on August 13, 2024

thrift is both an rpc protocol and a serialization format, so you could also serialize to thrift, seems like since the thrift serialization is going to be invoked anyway (even if just to a byte string) you might as well consider it as the actual serialization format if you are concerned about performance. I guess the other option might be write protocol buffers since it does seem like hbase is slowly moving towards using them internally and there might be a standard rpc format for protocol buffers. The second option basically depends on using this library as a temporary stop-gap in my opinion though.

from happybase.

wbolster avatar wbolster commented on August 13, 2024

It does not really matter that Thrift is used in the underlying protocol. The actual data is sent as a simple byte string anyway. But indeed, one can also use Thrift instead of the other formats I mentioned in my previous comment.

from happybase.

wbolster avatar wbolster commented on August 13, 2024

I'm closing this since HappyBase does not dictate how an application should store its data.

from happybase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.