コード例 #1
0
 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);
     });
 }
コード例 #2
0
 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);
     });
 }
コード例 #3
0
 public override bool IsAffected(long[] entityTokenIds)
 {
     foreach (int id in _entityTokens)
     {
         if (ArrayUtils.contains(entityTokenIds, id))
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #4
0
 public override bool IsAffected(long[] entityTokenIds)
 {
     return(ArrayUtils.contains(entityTokenIds, _relTypeId));
 }
コード例 #5
0
 private bool CorrectType()
 {
     return(_types == null || ArrayUtils.contains(_types, Cursor.type()));
 }
コード例 #6
0
        public static bool HasRelType(SchemaDescriptorSupplier supplier, int relTypeId)
        {
            SchemaDescriptor schema = supplier.Schema();

            return(Schema.entityType() == EntityType.RELATIONSHIP && ArrayUtils.contains(Schema.EntityTokenIds, relTypeId));
        }
コード例 #7
0
        public static bool HasLabel(SchemaDescriptorSupplier supplier, int labelId)
        {
            SchemaDescriptor schema = supplier.Schema();

            return(Schema.entityType() == EntityType.NODE && ArrayUtils.contains(Schema.EntityTokenIds, labelId));
        }