scanVertex method

Future<ScanResponse> scanVertex(
  1. ScanVertexRequest? req
)
override

Implementation

Future<ScanResponse> scanVertex(ScanVertexRequest? req) async {
  oprot.writeMessageBegin(
      new TMessage("scanVertex", TMessageType.CALL, nextSeqid()));
  scanVertex_args args = new scanVertex_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;
  }

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

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