killQuery method
Implementation
Future<ExecResp> killQuery(KillQueryReq? req) async {
oprot.writeMessageBegin(
new TMessage("killQuery", TMessageType.CALL, nextSeqid()));
killQuery_args args = new killQuery_args();
args.req = req;
args.write(oprot);
oprot.writeMessageEnd();
await oprot.trans_.flush();
TMessage msg = iprot.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
TApplicationError error = TApplicationError.read(iprot);
iprot.readMessageEnd();
throw error;
}
killQuery_result result = new killQuery_result();
result.read(iprot);
iprot.readMessageEnd();
if (result.isSetSuccess()) {
return result.success!;
}
throw new TApplicationError(TApplicationErrorType.MISSING_RESULT,
"killQuery failed: unknown result");
}