Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-3737

Refactoring: Improve AtlasGraph to Work with Externally Initialized Graph Object

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • trunk
    • trunk
    • atlas-core
    • None

    Description

      Background

      Existing AtlasGraph does not honor the instance with which it is constructed. The getGraph method always uses the default method. 

      This makes it impossible to use instances of graph database that have been initialized with different configurations.

      Solution

      • Refactor: AtlasGraph.getGraph method to use the instance it is constructed with.
      • Refactor: GraphHelper to be initialized with AtlasGraph instance. This is important since entity creation is one area where an alternate graph instance helps.
      • Refactor: AtlasUtilsV2. This is a utility class that uses AtlasGraphDatabase.getInstance for performing all its operations.
      • Refactor: AtlasEntityStoreV2 and AtlasRelationshipStoreV2 should be initialized with AtlasGraph instances.
      • Refactor: EntityGraphRetriever. Same as above.

      Attachments

        Issue Links

          Activity

            People

              amestry Ashutosh Mestry
              amestry Ashutosh Mestry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: