Change Password

Please enter the password.
Please enter the password. Between 8-64 characters. Not identical to your email address. Contain at least 3 of: uppercase, lowercase, numbers, and special characters.
Please enter the password.
Submit

Change Nickname

Current Nickname:
Submit

Apply New License

License Detail

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.

Leave it blank if an HDC service is not required.

Please complete this required field.

Leave it blank if an HDC service is not required.

Please complete this required field.

Please complete this required field.

Mac addresses of all servers, separated by line break or comma.

Please complete this required field.

Please complete this required field.

Cancel
Apply
ID
Product
Status
Cores
Maximum Shard Services
Maximum Total Cores for Shard Service
Maximum HDC Services
Maximum Total Cores for HDC Service
Applied Validity Period(days)
Effective Date
Expired Date
Mac Address
Reason for Application
Review Comment
Close
Profile
  • Full Name:
  • Phone:
  • Company:
  • Company Email:
Change Password
Apply

You have no license application record.

Apply
Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

Product Created On ID Amount (USD) Invoice
Product Created On ID Amount (USD) Invoice

No Invoice

v5.0
Search
    English
    v5.0

      Managing Distributed Projections

      Overview

      A distributed projection resides in the memory of the corresponding shard servers where the data is persistently stored. It can hold either full or partial data from a graph. The term "distributed projection" indicates that data within it can be distributed across the memory of multiple shards.

      All distributed projections of a graph are lost when the data in the graph is migrated to different shards.

      Showing Distributed Projections

      Retrieves information about all distributed projections of the current graph:

      SHOW PROJECTION
      

      show().projection()
      

      It returns a table _projectionList with the following fields:

      Field
      Description
      name Name of the projection.
      graph_name Name of the current graphset from which the data was loaded.
      status Current state of the projection, which can be DONE or CREATING, FAILED or UNKNOWN.
      stats Node and edge statistics per shard, including address of the leader replica of the current graphset, edge_in_count, edge_out_count and node_count.
      config Configurations for the distributed projection.

      Creating a Distributed Projection

      The projection creation is executed as a job, you may run SHOW JOB <id?> (GQL) or show().job(<id?>) (UQL) afterward to verify the success of the creation.

      Syntax

      CREATE PROJECTION <projectionName> OPTIONS {
        nodes: {
          "<schema1>": ["<property1>", "<property2>", ...],
          "<schema2>": ["<property1>", "<property2>", ...],
          ...
        },
        edges: {
          "<schema1>": ["<property1>", "<property2>", ...],
          "<schema2>": ["<property1>", "<property2>", ...],
          ...
        },
        direction: "<edgeDirection>",
        load_id: <boolean>
      }
      

      create().projection("<projectionName>", {
        nodes: {
          "<schema1>": ["<property1>", "<property2>", ...],
          "<schema2>": ["<property1>", "<property2>", ...],
          ...
        },
        edges: {
          "<schema1>": ["<property1>", "<property2>", ...],
          "<schema2>": ["<property1>", "<property2>", ...],
          ...
        },
        direction: "<edgeDirection>",
        load_id: <boolean>
      })
      
      Param Description Optional
      <projectionName> Name of the projection. Projections of the same graph cannot have duplicate names. Projections and HDC graphs of the same graph cannot have duplicate names. No
      nodes Specifies nodes to project based on schemas and properties. The _uuid is loaded by default, while _id is configurable with load_id. Sets to "*": ["*"] to load all nodes. Yes
      edges Specifies edges to project based on schemas and properties. All system properties are loaded by default. Sets to "*": ["*"] to load all edges. Yes
      direction Since each edge is physically stored twice - as an incoming edge along its destination node and an outgoing edge with its source node - you can choose to project only incoming edges with in, only outgoing edges with out, or both with undirected (the default setting). Please note that in or out restricts graph traversal during computation to the specified direction. No
      load_id Sets to false to project nodes without _id values to save the memory space; it defaults to true. Yes

      Examples

      To project the entire current graphset to its shard servers as distGraph:

      CREATE PROJECTION distGraph OPTIONS {
        nodes: {"*": ["*"]}, 
        edges: {"*": ["*"]},
        direction: "undirected",
        load_id: true
      }
      

      create().projection("distGraph", {
        nodes: {"*": ["*"]}, 
        edges: {"*": ["*"]},
        direction: "undirected",
        load_id: true
      })
      

      To project account and movie nodes with selected properties and incoming rate edges in the current graph to its shard servers as distGraph_1, while omitting nodes' _id values:

      CREATE PROJECTION distGraph_1 OPTIONS {
        nodes: {
          "account": ["name", "gender"],
          "movie": ["name", "year"]
        },
        edges: {"rate": ["*"]},
        direction: "in",
        load_id: false
      }
      

      create().projection("distGraph_1", {
        nodes: {
          "account": ["name", "gender"],
          "movie": ["name", "year"]
        },
        edges: {"rate": ["*"]},
        direction: "in",
        load_id: false
      })
      

      Dropping a Distributed Projection

      Deletes the distributed projection named distGraph_1:

      DROP PROJECTION distGraph_1
      

      drop().projection("distGraph_1")
      
      Please complete the following information to download this book
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      Privacy Policy.
      Please agree to continue.