[
https://issues.apache.org/jira/browse/TINKERPOP3-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14710199#comment-14710199
]
Marko A. Rodriguez commented on TINKERPOP3-620:
-----------------------------------------------
What is interesting here is that {{OrderGlobalStep}} is considered a
"FilterStep" ... even though its a "filter" that doesn't filter. Perhaps
{{CommutativeRankStrategy}} is the way to go and all the filter steps in
{{FilterRankStrategy}} have an added interface {{Commuting}} (has to end in
"ing" :) ).
> Commutative Step Marker interface
> ---------------------------------
>
> Key: TINKERPOP3-620
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-620
> Project: TinkerPop 3
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.0.0-incubating
> Reporter: Matthias Broecheler
>
> Some steps can be reordered, i.e. they are commutative. For instance,
> has-steps can be reordered without affecting the pipeline. When writing a
> query optimizer I am often in a situation where I can only optimize a subset
> of the supported steps and I might want to reorder them so that I can group
> all the optimizable steps together. Currently, I have to manually identify
> the commutative steps for that. It would be much nicer if TinkerPop could
> have a "Commutative" marker interface for that and use it consistently.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)