public static System.Predicate <T> HasRelType <T>(int relTypeId) where T : SchemaDescriptorSupplier { return(supplier => { SchemaDescriptor schema = supplier.schema(); return Schema.entityType() == EntityType.RELATIONSHIP && ArrayUtils.contains(Schema.EntityTokenIds, relTypeId); }); }
public static System.Predicate <T> HasLabel <T>(int labelId) where T : SchemaDescriptorSupplier { return(supplier => { SchemaDescriptor schema = supplier.schema(); return Schema.entityType() == EntityType.NODE && ArrayUtils.contains(Schema.EntityTokenIds, labelId); }); }
public override bool IsAffected(long[] entityTokenIds) { foreach (int id in _entityTokens) { if (ArrayUtils.contains(entityTokenIds, id)) { return(true); } } return(false); }
public override bool IsAffected(long[] entityTokenIds) { return(ArrayUtils.contains(entityTokenIds, _relTypeId)); }
private bool CorrectType() { return(_types == null || ArrayUtils.contains(_types, Cursor.type())); }
public static bool HasRelType(SchemaDescriptorSupplier supplier, int relTypeId) { SchemaDescriptor schema = supplier.Schema(); return(Schema.entityType() == EntityType.RELATIONSHIP && ArrayUtils.contains(Schema.EntityTokenIds, relTypeId)); }
public static bool HasLabel(SchemaDescriptorSupplier supplier, int labelId) { SchemaDescriptor schema = supplier.Schema(); return(Schema.entityType() == EntityType.NODE && ArrayUtils.contains(Schema.EntityTokenIds, labelId)); }