I have a thrift file point.thrift that has only two variables as follows:

struct Point {
  1: double lat,
  2: double lon}

But when I generate the java file using,

thrift --gen java point.thrift

then the generated java code has other boolean variables, setLat and
setLon. So, my Point object looks like below:

"point": {
  "lat": 12.983451879142935,
  "lon": 77.75181960314512,
  "setLat": true,
  "setLon": true}

Is there any way these extra boolean variables can be removed from my point
object because it is increasing the size of my object, which in turn will
take up a lot of space when I store them. Note that this is the basic
definition but the actual definition will have lots of other fields. So,
storage is a concern for me.

Reply via email to