Ejemplo n.º 1
0
 internal override bool inUse(KernelTransaction transaction, SchemaReadCore schemaReadCore, int tokenId)
 {
     return(true);                  // TODO: add support for telling if a property key is in use or not
 }
Ejemplo n.º 2
0
 internal override bool inUse(KernelTransaction transaction, SchemaReadCore schemaReadCore, int tokenId)
 {
     return(HasAny(schemaReadCore.IndexesGetForLabel(tokenId)) || HasAny(schemaReadCore.ConstraintsGetForLabel(tokenId)) || transaction.DataRead().countsForNode(tokenId) > 0);                          // used by data
 }
Ejemplo n.º 3
0
 internal override bool inUse(KernelTransaction transaction, SchemaReadCore schemaReadCore, int tokenId)
 {
     return(HasAny(schemaReadCore.IndexesGetForRelationshipType(tokenId)) || HasAny(schemaReadCore.ConstraintsGetForRelationshipType(tokenId)) || transaction.DataRead().countsForRelationship(ANY_LABEL, tokenId, ANY_LABEL) > 0);                          // used by data
 }
Ejemplo n.º 4
0
 internal abstract bool InUse(KernelTransaction transaction, SchemaReadCore schemaReadCore, int tokenId);
Ejemplo n.º 5
0
 public TokenIteratorAnonymousInnerClass(KernelTransaction transaction, Org.Neo4j.Kernel.Impl.Api.TokenAccess <T> access, SchemaReadCore schemaReadCore) : base(transaction, access)
 {
     this._transaction    = transaction;
     this._schemaReadCore = schemaReadCore;
 }
Ejemplo n.º 6
0
            internal static ResourceIterator <T> InUse <T>(KernelTransaction transaction, TokenAccess <T> access)
            {
                SchemaReadCore schemaReadCore = transaction.SchemaRead().snapshot();

                return(new TokenIteratorAnonymousInnerClass(transaction, access, schemaReadCore));
            }