Class TinkerGraphDefaultProvider

java.lang.Object
org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraphDefaultProvider
All Implemented Interfaces:
DefaultGraphProvider

public class TinkerGraphDefaultProvider extends Object implements DefaultGraphProvider
Registers TinkerGraph as gremlin-core's DefaultGraphProvider, discovered with ServiceLoader (see META-INF/services), so that gremlin-core can open a TinkerGraph for a deserialized remote Graph result or for the default subgraph() side-effect without naming the implementation class directly.
  • Constructor Details

    • TinkerGraphDefaultProvider

      public TinkerGraphDefaultProvider()
  • Method Details

    • open

      public Graph open(org.apache.commons.configuration2.Configuration configuration)
      Opens a TinkerGraph with the given configuration. If the configuration does not name a graph class in Graph.GRAPH, TinkerGraph is recorded there, as it would be for a graph opened through GraphFactory.
      Specified by:
      open in interface DefaultGraphProvider
      Parameters:
      configuration - configuration for the graph; an implementation should tolerate an empty configuration and apply its own defaults