Ashutosh Mestry created ATLAS-3737: -------------------------------------- Summary: Refactoring: Improve AtlasGraph to Work with Externally Initialized Graph Object Key: ATLAS-3737 URL: https://issues.apache.org/jira/browse/ATLAS-3737 Project: Atlas Issue Type: Improvement Components: atlas-core Affects Versions: trunk Reporter: Ashutosh Mestry Assignee: Ashutosh Mestry Fix For: trunk
*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. -- This message was sent by Atlassian Jira (v8.3.4#803005)