private static class BlurQueryStatusTupleScheme extends TupleScheme<BlurQueryStatus> {
@Override
public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurQueryStatus struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetQuery()) {
optionals.set(0);
}
if (struct.isSetCpuTimes()) {
optionals.set(1);
}
if (struct.isSetCompleteShards()) {
optionals.set(2);
}
if (struct.isSetTotalShards()) {
optionals.set(3);
}
if (struct.isSetState()) {
optionals.set(4);
}
if (struct.isSetUuid()) {
optionals.set(5);
}
if (struct.isSetStatus()) {
optionals.set(6);
}
oprot.writeBitSet(optionals, 7);
if (struct.isSetQuery()) {
struct.query.write(oprot);
}
if (struct.isSetCpuTimes()) {
{
oprot.writeI32(struct.cpuTimes.size());
for (Map.Entry<String, CpuTime> _iter97 : struct.cpuTimes.entrySet())
{
oprot.writeString(_iter97.getKey());
_iter97.getValue().write(oprot);
}
}
}
if (struct.isSetCompleteShards()) {
oprot.writeI32(struct.completeShards);
}
if (struct.isSetTotalShards()) {
oprot.writeI32(struct.totalShards);
}
if (struct.isSetState()) {
oprot.writeI32(struct.state.getValue());
}
if (struct.isSetUuid()) {
oprot.writeString(struct.uuid);
}
if (struct.isSetStatus()) {
oprot.writeI32(struct.status.getValue());
}
}