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 }
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 }
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 }
internal abstract bool InUse(KernelTransaction transaction, SchemaReadCore schemaReadCore, int tokenId);
public TokenIteratorAnonymousInnerClass(KernelTransaction transaction, Org.Neo4j.Kernel.Impl.Api.TokenAccess <T> access, SchemaReadCore schemaReadCore) : base(transaction, access) { this._transaction = transaction; this._schemaReadCore = schemaReadCore; }
internal static ResourceIterator <T> InUse <T>(KernelTransaction transaction, TokenAccess <T> access) { SchemaReadCore schemaReadCore = transaction.SchemaRead().snapshot(); return(new TokenIteratorAnonymousInnerClass(transaction, access, schemaReadCore)); }