thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J <mvn...@gmail.com>
Subject Thrift custom types
Date Fri, 06 Nov 2015 23:01:10 GMT
Hi, I'm wondering what's the best pattern to add methods to Thrift types.
Say I some Thrift types like:

  struct MyStruct {
    1: i32 data1
    2: string data2
  }

Say I want to add methods to the generated Java object such as
"get10XData1()" that just returns 10x data1. Is there some way to do that
or do I have to hack the thrift compiler and libraries?

Similarly, say I want to have a custom type with custom
serialization/deserialization. Is there any way to do that without editing
thrift?

Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message