private void newDb( int denseNodeThreshold ) { db = new ImpermanentGraphDatabase( MapUtil.stringMap( "dbms.relationship_grouping_threshold", "" + denseNodeThreshold ) ); fs = db.getDependencyResolver().resolveDependency( FileSystemAbstraction.class ); }
@Override public GraphDatabaseFacade newGraphDatabase( Config config, GraphDatabaseFacadeFactory.Dependencies dependencies ) { File storeDir = config.get( GraphDatabaseSettings.database_path ); config.augment( stringMap( GraphDatabaseSettings.ephemeral.name(), "true", new BoltConnector( "bolt" ).listen_address.name(), "localhost:0" ) ); return new ImpermanentGraphDatabase( storeDir, config, GraphDatabaseDependencies.newDependencies( dependencies ) ); } }
private void createInMemoryGraphDatabaseService() { this.graphDb = new ImpermanentGraphDatabase(configurationParameters); }
private void createInMemoryGraphDatabaseService() { this.graphDb = new ImpermanentGraphDatabase(configurationParameters); }
@BeforeClass public static void setUp() throws Exception { database = new WrappingDatabase( new ImpermanentGraphDatabase() ); session = new GremlinSession( database ); }
@Before public void setup() throws Exception { db = new ImpermanentGraphDatabase(); db.cleanContent(true); }
@Before public void setup() throws IOException { graphdb = new ImpermanentGraphDatabase(); graphdb.cleanContent(true); engine = new ExecutionEngine( graphdb ); }
@Before public void setup() throws IOException { graphdb = new ImpermanentGraphDatabase(); graphdb.cleanContent( false ); engine = new ExecutionEngine( graphdb ); }
@Before public void setUp() throws Exception { this.database = new WrappingDatabase( new ImpermanentGraphDatabase() ); this.consoleService = new ConsoleService( this, database, new OutputFormat( new JsonFormat(), uri, null ) ); }
neo4j = new ImpermanentGraphDatabase(); plugin = new GremlinPlugin(); Graph graph = new Neo4jGraph( neo4j );