Skip to content

A framework for storing (and restoring) the distributed state of an evolving, schemaless data structure.

Notifications You must be signed in to change notification settings

jamietdavidson/temporal-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

core-graph

Developer Guide

We use a few different naming conventions to represent different parts of a Node. They are to be used as follows:

NestedDictionary nodeDataDict

var nodeValueDict = new NestedDictionary()
{
    {
        "Fields", new FlatDictionary
        {
            { "fieldKey", Field },
        }
    },
    {
        "Edge", new FlatDictionary
        {
            { "edgeKey", Edge },
        }
    },
    {
        "EdgeCollections", new FlatDictionary
        {
            { "edgeCollectionKey", EdgeCollection }
        }
    }
}

NestedDictionary nodeMetaDict

var nodeDict = new NestedDictionary()
{
    "Meta", new FlatDictionary
    {
        { "Guid", Guid },
        { "Tag", string },
        { "Deleted", boolean }
    }
}

NestedDictionary nodeRepDict

Note that the nodeRepDict contains both of the nodeMetaDict and nodeValuesDict. The nodeValuesDict lies as a first layer dictionary as either data or delta.

var nodeDict = new NestedDictionary()
{
    {
        "Meta", new FlatDictionary
        {
            { "Guid", Guid },
            { "Tag", string },
            { "Deleted", boolean }
        }
    },
    {
        "Data", new FlatDictionary
        {
            {
                "Fields", new FlatDictionary
                {
                    { "fieldKey", Field },
                }
            },
            {
                "Edge", new FlatDictionary
                {
                    { "edgeKey", Edge },
                }
            },
            {
                "EdgeCollections", new FlatDictionary
                {
                    { "edgeCollectionKey", EdgeCollection }
                }
            }
        }
    }
}

About

A framework for storing (and restoring) the distributed state of an evolving, schemaless data structure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages