OrientDB:边缘VS LinkList vs Linkmap [英] OrientDB : Edges vs LinkList vs Linkmap

查看:160
本文介绍了OrientDB:边缘VS LinkList vs Linkmap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 linklist ,a linkmap 或者使用边来存储我的顶点之间的关系?

解决方案

边定义两个顶点之间的关系。例如,你定义了两个顶点Person和Car。然后您定义一个边缘驱动器。该边将两个顶点连接在一起。 Jane驱动Ford。

链接列表是与另一个类关联的类的列表。 Car类可能有Part类的部分链接列表。一辆车由多个部分组成。

linkmap是与另一个类关联的关键类值的映射。汽车类可能有PartType的部分链接图。一辆汽车由多个部分组成,可以按发动机,车身,底盘等分组。

What are the pros and cons for using either a linklist, a linkmap or an edge to store relationships between my vertices ?

解决方案

An edge defines a relationship between two vertices. For example, you define two vertices, Person and Car. You then define an Edge Drives. This edge ties the two vertices together. "Jane" Drives "Ford".

A linklist is a list of classes associated with another class. A Car class might have a linklist of parts from the Part class. A car consists of multiple parts.

A linkmap is a map of key, class values associate with another class. A car class might have a linkmap of PartType, Part. A car consists of multiple parts, which can be grouped by engine, body, chassis, etc.

这篇关于OrientDB:边缘VS LinkList vs Linkmap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆