修改密码

请输入密码
请输入密码 请输入8-64长度密码 和 email 地址不相同 至少包括数字、大写字母、小写字母、半角符号中的 3 个
请输入密码
提交

修改昵称

当前昵称:
提交

申请证书

证书详情

Please complete this required field.

  • Ultipa Blaze (v4)

Standalone

Please complete this required field.

Please complete this required field.

Please complete this required field.

Please complete this required field.

如果不需要 HDC 服务,则此项留空。

Please complete this required field.

如果不需要 HDC 服务,则此项留空。

Please complete this required field.

Please complete this required field.

所有服务器的MAC地址,由换行符或逗号分隔。

Please complete this required field.

Please complete this required field.

取消
申请
ID
产品
状态
核数
Shard 服务最大数量
Shard 服务最大总核数
HDC 服务最大数量
HDC 服务最大总核数
申请天数
审批日期
过期日期
MAC地址
申请理由
审核信息
关闭
基础信息
  • 用户昵称:
  • 手机号:
  • 公司名称:
  • 公司邮箱:
  • 地区:
  • 语言:
修改密码
申请证书

当前未申请证书.

申请证书
Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

ProductName CreateTime ID Price File
ProductName CreateTime ID Price File

No Invoice

v4.5
搜索
    v4.5

      结果处理

      驱动程序的输出取决于具体请求。有些方法,如uql(),会返回UltipaResponse 对象,您需从中提取数据,将其转换成相应的驱动类型以用于Python应用程序。其他方法,如showGraph(), showSchema(),和 showProperty(),则直接返回驱动类型数据(GraphSet, Schema, Property等)。请参阅嬴图数据与Python类型映射了解主要驱动类型。

      Response

      uql()和其他方法会返回Response对象。Response对象包含以下字段:

      字段
      类型
      描述
      aliases List[ResultAlias] 别名列表;每个别名包含名称和数据类型
      items Dict 别名和对应数据(DataItem)的映射
      explainPlan List[ExplainPlan] UQL语句的解释树
      status Status 请求执行状态
      statistics UltipaStatistics 请求执行统计数据,包括nodeAffectededgeAffectedtotalCostengineCost
      req ReturnReq 请求详情,包括图集名称(graph_name)、UQL 查询(uql)、主机(host)、重试次数(Retry)和 UQL 是否额外(uqlIsExtra)。

      若查询返回了数据,您可使用get()alias()方法通过数据别名提取各项目。两种方法均返回一个DataItem对象,内嵌在查询结果中。若要将DataItem映射为对应的驱动类型,请参阅嬴图数据与Python类型映射.

      get()

      通过别名索引获取数据。

      参数:

      • int:别名索引。

      返回值:

      • DataItem:获取到的数据。

      response = Conn.uql("find().nodes() as n return n._id, n._uuid limit 3")
      print(response.get(0).toJSON())
      

      UQL语句返回n._idn._uuid两个别名;get()方法获取别名索引为0的n._id数据。

      {"alias": "n._id", "data": {"name": "n._id", "type": 4, "type_desc": "ATTR", "values": ["U1", "U2", "U3"]}, "type": "ATTR"}
      

      alias()

      通过别名名称获取数据。

      参数:

      • str:别名名称。

      返回值:

      • DataItem:获取到的数据。

      response = Conn.uql("find().nodes() as n return n._id, n._uuid limit 3")
      print(response.alias('n._uuid').toJSON())
      

      UQL语句返回n._idn._uuid两个别名;alias()方法根据n._uuid的别名名称获取数据。

      {"alias": "n._uuid", "data": {"name": "n._uuid", "type": 4, "type_desc": "ATTR", "values": [1, 2, 3]}, "type": "ATTR"}
      
      请完成以下信息后可下载此书
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写