public class TemporaryNodePool extends Object
Provides temporary node instances. This class has been created due to performance requirements, as nodes can be created only within transaction, which is costy to create each new node within one transaction. This class creates a set of nodes within single transaction, which then can be passed to class' client and if it runs out of nodes then will create new batch again in one transaction.
Batches are created at various size, growing exponentially
Constructor and Description |
---|
TemporaryNodePool(org.neo4j.graphdb.GraphDatabaseService db,
NodeSpaceManager spaceManager) |
public TemporaryNodePool(org.neo4j.graphdb.GraphDatabaseService db, NodeSpaceManager spaceManager)
Copyright © 2002 – 2020 Project Wonder.