public override AnyValue MapRelationship(VirtualRelationshipValue value)
 {
     if (value is RelationshipValue)
     {
         return(value);
     }
     return(ValueUtils.fromRelationshipProxy(ProxySpi.newRelationshipProxy(value.Id())));
 }
 public override AnyValue MapRelationship(VirtualRelationshipValue value)
 {
     if (!NeedsConversion)
     {
         NeedsConversion = value is RelationshipReference;
     }
     return(value);
 }
Пример #3
0
 public override Relationship MapRelationship(VirtualRelationshipValue value)
 {
     if (value is RelationshipProxyWrappingValue)
     {               // this is the back door through which "virtual relationships" slip
         return((( RelationshipProxyWrappingValue )value).RelationshipProxy());
     }
     return(new RelationshipProxy(_proxySPI, value.Id()));
 }
Пример #4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unused") public static long unboxRelationshipOrNull(org.neo4j.values.virtual.VirtualRelationshipValue value)
        public static long UnboxRelationshipOrNull(VirtualRelationshipValue value)
        {
            if (value == null)
            {
                return(-1L);
            }
            return(value.Id());
        }
 public abstract Base MapRelationship(VirtualRelationshipValue value);
Пример #6
0
 public override object mapRelationship(VirtualRelationshipValue value)
 {
     throw new EvaluationRuntimeException("Unable to evaluate relationships");
 }
Пример #7
0
 public override object MapRelationship(VirtualRelationshipValue value)
 {
     return(new MappedGraphType(value));
 }
Пример #8
0
 public override ListValue MapRelationship(VirtualRelationshipValue value)
 {
     return(null);
 }