コード例 #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
 }
コード例 #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
 }
コード例 #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
 }
コード例 #4
0
 internal abstract bool InUse(KernelTransaction transaction, SchemaReadCore schemaReadCore, int tokenId);
コード例 #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;
 }
コード例 #6
0
            internal static ResourceIterator <T> InUse <T>(KernelTransaction transaction, TokenAccess <T> access)
            {
                SchemaReadCore schemaReadCore = transaction.SchemaRead().snapshot();

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