KnowForge/Apache Atlas 2.5.0/ 返回书籍
Misc

Soft Reference

qianmoQqianmoQ· 更新于 2026-09-21· 阅读 2 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

Entity Attribute Option: SoftReference

Background

Entity attributes are specified using attribute definitions. An attributes' persistence strategy is determined by based on their type.

Primitive types are persisted as properties within the vertex of their parent.

Non-primitive attributes get a vertex of their own and edge is created between the parent the child to establish ownership.

Attribute with isSoftReference option set to true, is non-primitive attribute that gets treatment of a primitive attribute.

Specification

Below is an example of using the new attribute option.

"attributeDefs": [
      {
        "name": "replicatedFrom",
        "typeName": "array<AtlasServer>",
        "cardinality": "SET",
        "isIndexable": false,
        "isOptional": true,
        "isUnique": false,
        "options": {
          "isSoftReference": "true"
        }
      },...]

评论

登录后参与评论

正在加载评论…