修改密码

请输入密码
请输入密码 请输入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

v5.0
搜索
    v5.0

      Schema总览

      HDC

      概述

      Schema总览算法通过统计起、终点schema信息、其间的边schema信息及相应边数,实现对图结构的整体展示。

      示例图集

      创建示例图集:

      // 在空图集中逐行运行以下语句
      create().node_schema("account").node_schema("movie").node_schema("country").node_schema("director").edge_schema("follow").edge_schema("like").edge_schema("filmedIn").edge_schema("direct")
      insert().into(@account).nodes([{_id:"David"}, {_id:"Emily"}, {_id:"Alice"}])
      insert().into(@movie).nodes([{_id:"Titanic"}, {_id:"Avatar"}])
      insert().into(@country).nodes({_id:"Mexico"})
      insert().into(@director).nodes({_id:"James Cameron"})
      insert().into(@follow).edges([{_from:"David", _to:"Alice"}, {_from:"Emily", _to:"Alice"}])
      insert().into(@like).edges({_from:"Alice", _to:"Titanic"})
      insert().into(@filmedIn).edges({_from:"Titanic", _to: "Mexico"})
      insert().into(@direct).edges([{_from:"James Cameron", _to:"Titanic"}, {_from:"James Cameron", _to:"Avatar"}])
      

      创建HDC图集

      将当前图集全部加载到HDC服务器hdc-server-1上,并命名为 hdc_schema_ov

      CALL hdc.graph.create("hdc-server-1", "hdc_schema_ov", {
        nodes: {"*": ["*"]},
        edges: {"*": ["*"]},
        direction: "undirected",
        load_id: true,
        update: "static",
        query: "query",
        default: false
      })
      

      hdc.graph.create("hdc_schema_ov", {
        nodes: {"*": ["*"]},
        edges: {"*": ["*"]},
        direction: "undirected",
        load_id: true,
        update: "static",
        query: "query",
        default: false
      }).to("hdc-server-1")
      

      参数

      算法名:schema_overview

      参数名
      类型
      规范
      默认值
      可选
      描述
      order String asc, desc / 根据count值对结果排序

      完整返回

      CALL algo.schema_overview("hdc_schema_ov", {
        params: {},
        return_params: {}
      }) YIELD result
      RETURN result
      

      exec{
        algo(schema_overview).params() as result
        return result
      } on hdc_schema_ov
      

      结果:

      node schema(src)
      edge schema
      node schema(dest)
      count
      account follow account 2
      account like movie 1
      movie filmedIn country 1
      director direct movie 2

      流式返回

      CALL algo.schema_overview("hdc_schema_ov", {
        params: {},
        return_params: {
          stream: {}
        }
      }) YIELD r
      FILTER r.`node schema(src)` = "account" 
      RETURN r
      

      exec{
        algo(schema_overview).params().stream() as r
        where r.`node schema(src)` == "account" 
        return r
      } on hdc_schema_ov
      

      结果:

      node schema(src)
      edge schema
      node schema(dest)
      count
      account follow account 2
      account like movie 1
      请完成以下信息后可下载此书
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写