private static class BlurExceptionTupleScheme extends TupleScheme<BlurException> {
@Override
public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurException struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetMessage()) {
optionals.set(0);
}
if (struct.isSetStackTraceStr()) {
optionals.set(1);
}
if (struct.isSetErrorType()) {
optionals.set(2);
}
oprot.writeBitSet(optionals, 3);
if (struct.isSetMessage()) {
oprot.writeString(struct.message);
}
if (struct.isSetStackTraceStr()) {
oprot.writeString(struct.stackTraceStr);
}
if (struct.isSetErrorType()) {
oprot.writeI32(struct.errorType.getValue());
}
}