Exemplo n.º 1
0
 public override Node MapNode(VirtualNodeValue value)
 {
     if (value is NodeProxyWrappingNodeValue)
     {               // this is the back door through which "virtual nodes" slip
         return((( NodeProxyWrappingNodeValue )value).NodeProxy());
     }
     return(new NodeProxy(_proxySPI, value.Id()));
 }
            // Create proxy wrapping values for nodes and relationships that are not already such values

            public override AnyValue MapNode(VirtualNodeValue value)
            {
                if (value is NodeValue)
                {
                    return(value);
                }
                return(ValueUtils.fromNodeProxy(ProxySpi.newNodeProxy(value.Id())));
            }
 public override AnyValue MapNode(VirtualNodeValue value)
 {
     if (!NeedsConversion)
     {
         NeedsConversion = value is NodeReference;
     }
     return(value);
 }
Exemplo n.º 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 unboxNodeOrNull(org.neo4j.values.virtual.VirtualNodeValue value)
        public static long UnboxNodeOrNull(VirtualNodeValue value)
        {
            if (value == null)
            {
                return(-1L);
            }
            return(value.Id());
        }
 public override NodeValue OtherNode(VirtualNodeValue node)
 {
     if (node is NodeProxyWrappingNodeValue)
     {
         Node proxy = (( NodeProxyWrappingNodeValue )node).NodeProxy();
         return(ValueUtils.FromNodeProxy(_relationship.getOtherNode(proxy)));
     }
     else
     {
         return(base.OtherNode(node));
     }
 }
 public abstract Base MapNode(VirtualNodeValue value);
Exemplo n.º 7
0
 public override object mapNode(VirtualNodeValue value)
 {
     throw new EvaluationRuntimeException("Unable to evaluate nodes");
 }
Exemplo n.º 8
0
 public override object MapNode(VirtualNodeValue value)
 {
     return(new MappedGraphType(value));
 }
Exemplo n.º 9
0
 public override ListValue MapNode(VirtualNodeValue value)
 {
     return(null);
 }