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.
