the asList can not seem to be found... where is that provided?

On Friday, January 24, 2014 7:21:37 PM UTC-6, Michael Hunger wrote:
>
> I think you have to create a custom RelationshipExpander, that takes a 
> list of pairs of type and direction and checks at the current path length 
> for the correct combo to look for.
>
> I think from a quick look that org.neo4j.kernel.OrderedByTypeExpander 
> already does this btw. Please check.
>
> new 
> OrderedByTypeExpander(asList(Pair.of(DynamicRelationshipType.withName("preferred_store"),
>  
> Direction.OUTGOING),Pair.of( 
> DynamicRelationshipType.withName("preferred_store"), 
> Direction.INCOMING), ....)
>
> Michael
>
>
> On Fri, Jan 24, 2014 at 10:21 PM, Javad Karabi 
> <[email protected]<javascript:>
> > wrote:
>
>> How would i use the traversal description to do the following?
>>
>> MATCH 
>> me-[:preferred_store]->(:Store)<-[:preferred_store]-(:Member)-[:ordered]->(p:Product)
>>
>> I assumed that the following worked:
>>        .relationships( 
>> DynamicRelationshipType.withName("preferred_store"), Direction.OUTGOING )
>>        .relationships( 
>> DynamicRelationshipType.withName("preferred_store"), Direction.INCOMING )
>>        .relationships( DynamicRelationshipType.withName("ordered"), 
>> Direction.OUTGOING )
>>        .relationships( DynamicRelationshipType.withName("product"), 
>> Direction.OUTGOING )
>>
>> However, I am seeing that the order in which relationships() is executed 
>> does not make a difference, it just adds the relationships to a global list 
>> of allowed relationships for the description... how would i ensure that the 
>> traversal only goes from preferred store, to ordered, to the product?
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Neo4j" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to