getEdgeIndex method

Future<GetEdgeIndexResp> getEdgeIndex(
  1. GetEdgeIndexReq? req
)
override

Implementation

Future<GetEdgeIndexResp> getEdgeIndex(GetEdgeIndexReq? req) async {
  oprot.writeMessageBegin(
      new TMessage("getEdgeIndex", TMessageType.CALL, nextSeqid()));
  getEdgeIndex_args args = new getEdgeIndex_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;
  }

  getEdgeIndex_result result = new getEdgeIndex_result();
  result.read(iprot);
  iprot.readMessageEnd();
  if (result.isSetSuccess()) {
    return result.success!;
  }

  throw new TApplicationError(TApplicationErrorType.MISSING_RESULT,
      "getEdgeIndex failed: unknown result");
}