Exemple #1
0
			  internal DirectRelationshipValue( long id, NodeValue startNode, NodeValue endNode, TextValue type, MapValue properties ) : base( id )
			  {
					Debug.Assert( properties != null );

					this.StartNodeConflict = startNode;
					this.EndNodeConflict = endNode;
					this.TypeConflict = type;
					this.PropertiesConflict = properties;
			  }
Exemple #2
0
 public static VirtualValue Path(params VirtualValue[] pathElements)
 {
     Debug.Assert(pathElements.Length % 2 == 1);
     NodeValue[]         nodes = new NodeValue[pathElements.Length / 2 + 1];
     RelationshipValue[] rels  = new RelationshipValue[pathElements.Length / 2];
     nodes[0] = ( NodeValue )pathElements[0];
     for (int i = 1; i < pathElements.Length; i += 2)
     {
         rels[i / 2]      = ( RelationshipValue )pathElements[i];
         nodes[i / 2 + 1] = ( NodeValue )pathElements[i + 1];
     }
     return(VirtualValues.Path(nodes, rels));
 }
Exemple #3
0
 public static RelationshipValue RelationshipValue(long id, NodeValue startNode, NodeValue endNode, TextValue type, MapValue properties)
 {
     return(new RelationshipValue.DirectRelationshipValue(id, startNode, endNode, type, properties));
 }