Class GraphFactory
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.GraphFactory
Factory to construct new
Graph instances from a Configuration object or properties file.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Method Summary
-
Method Details
-
open
Open a graph. See eachGraphinstance for its configuration options.- Parameters:
configuration- A configuration object that specifies the minimally required properties for aGraphinstance. This minimum is determined by theGraphinstance itself.- Returns:
- A
Graphinstance. - Throws:
IllegalArgumentException- ifconfiguration
-
open
Open a graph. See eachGraphinstance for its configuration options. This file may be XML, YAML, or a standard properties file. How the configuration is used (and which kind is required) is dependent on the implementation. If using XML, ensure that the appropriate version of Apachecommons-collectionsis available on the classpath as it is an optional dependency of Apachecommons-configuration, the library thatGraphFactorydepends on.- Parameters:
configurationFile- The location of a configuration file that specifies the minimally required properties for aGraphinstance. This minimum is determined by theGraphinstance itself.- Returns:
- A
Graphinstance. - Throws:
IllegalArgumentException- ifconfigurationFileis null
-
open
Open a graph. See eachGraphinstance for its configuration options.- Parameters:
configuration- AMapbased configuration that will be converted to anConfigurationobject viaMapConfigurationand passed to the appropriate overload.- Returns:
- A Graph instance.
-