Neo4j Enterprise

org.neo4j.kernel
Class BridgingCacheAccess

java.lang.Object
  extended by org.neo4j.kernel.BridgingCacheAccess
All Implemented Interfaces:
org.neo4j.kernel.impl.core.CacheAccessBackDoor

public class BridgingCacheAccess
extends Object
implements org.neo4j.kernel.impl.core.CacheAccessBackDoor


Constructor Summary
BridgingCacheAccess(org.neo4j.kernel.impl.core.NodeManager nodeManager, org.neo4j.kernel.impl.api.SchemaCache schemaCache, org.neo4j.kernel.impl.api.SchemaState schemaState, org.neo4j.kernel.impl.api.PersistenceCache persistenceCache)
           
 
Method Summary
 void addPropertyIndex(org.neo4j.kernel.impl.nioneo.store.NameData index)
           
 void addRelationshipType(org.neo4j.kernel.impl.nioneo.store.NameData type)
           
 void addSchemaRule(org.neo4j.kernel.impl.nioneo.store.SchemaRule rule)
           
 void patchDeletedRelationshipNodes(long relId, long firstNodeId, long firstNodeNextRelId, long secondNodeId, long secondNodeNextRelId)
          Patches the relationship chain loading parts of the start and end nodes of deleted relationships.
 void removeGraphPropertiesFromCache()
           
 void removeNodeFromCache(long nodeId)
           
 void removeRelationshipFromCache(long id)
           
 void removeRelationshipTypeFromCache(int id)
           
 void removeSchemaRuleFromCache(long id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgingCacheAccess

public BridgingCacheAccess(org.neo4j.kernel.impl.core.NodeManager nodeManager,
                           org.neo4j.kernel.impl.api.SchemaCache schemaCache,
                           org.neo4j.kernel.impl.api.SchemaState schemaState,
                           org.neo4j.kernel.impl.api.PersistenceCache persistenceCache)
Method Detail

removeNodeFromCache

public void removeNodeFromCache(long nodeId)
Specified by:
removeNodeFromCache in interface org.neo4j.kernel.impl.core.CacheAccessBackDoor

removeRelationshipFromCache

public void removeRelationshipFromCache(long id)
Specified by:
removeRelationshipFromCache in interface org.neo4j.kernel.impl.core.CacheAccessBackDoor

removeRelationshipTypeFromCache

public void removeRelationshipTypeFromCache(int id)
Specified by:
removeRelationshipTypeFromCache in interface org.neo4j.kernel.impl.core.CacheAccessBackDoor

removeGraphPropertiesFromCache

public void removeGraphPropertiesFromCache()
Specified by:
removeGraphPropertiesFromCache in interface org.neo4j.kernel.impl.core.CacheAccessBackDoor

addSchemaRule

public void addSchemaRule(org.neo4j.kernel.impl.nioneo.store.SchemaRule rule)
Specified by:
addSchemaRule in interface org.neo4j.kernel.impl.core.CacheAccessBackDoor

removeSchemaRuleFromCache

public void removeSchemaRuleFromCache(long id)
Specified by:
removeSchemaRuleFromCache in interface org.neo4j.kernel.impl.core.CacheAccessBackDoor

addRelationshipType

public void addRelationshipType(org.neo4j.kernel.impl.nioneo.store.NameData type)
Specified by:
addRelationshipType in interface org.neo4j.kernel.impl.core.CacheAccessBackDoor

addPropertyIndex

public void addPropertyIndex(org.neo4j.kernel.impl.nioneo.store.NameData index)
Specified by:
addPropertyIndex in interface org.neo4j.kernel.impl.core.CacheAccessBackDoor

patchDeletedRelationshipNodes

public void patchDeletedRelationshipNodes(long relId,
                                          long firstNodeId,
                                          long firstNodeNextRelId,
                                          long secondNodeId,
                                          long secondNodeNextRelId)
Description copied from interface: org.neo4j.kernel.impl.core.CacheAccessBackDoor
Patches the relationship chain loading parts of the start and end nodes of deleted relationships. This is a good idea to call when deleting relationships, otherwise the in memory representation of relationship chains may become damaged. This is not expected to remove the deleted relationship from the cache - use CacheAccessBackDoor.removeRelationshipFromCache(long) for that purpose before calling this method.

Specified by:
patchDeletedRelationshipNodes in interface org.neo4j.kernel.impl.core.CacheAccessBackDoor
Parameters:
relId - The relId of the relationship deleted
firstNodeId - The relId of the first node
firstNodeNextRelId - The next relationship relId of the first node in its relationship chain
secondNodeId - The relId of the second node
secondNodeNextRelId - The next relationship relId of the second node in its relationship chain

Neo4j Enterprise

Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.