[
https://issues.apache.org/jira/browse/TINKERPOP-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15524234#comment-15524234
]
Marko A. Rodriguez commented on TINKERPOP-1473:
-----------------------------------------------
With this change {{PathProcessStrategy}} should be a POST to
{{InlineFilterStrategy}} and {{FilterRankStrategy}}. Look into how
{{where(as('a').has(x))}} gets turned into {{select("a").filter(has(x))}}. That
should then just be inlined to {{select("a").has(x)}}.
> Given PathRetractionStrategy, PathProcessorStrategy can be extended to
> support partial where() inlining.
> --------------------------------------------------------------------------------------------------------
>
> Key: TINKERPOP-1473
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1473
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.2.2
> Reporter: Marko A. Rodriguez
>
> {{PathProcessorStrategy}} has a big chunk of code commented out in it that
> says: "todo: need to be able to drop path labels for this to work."
> Given {{PathRetractionStrategy}}, we can now support:
> {code}
> where(as('a').out().as('b')) => select('a').where(out().as('b'))
> {code}
> This is useful for OLAP when you can only process the local star graph and
> thus, if {{where()}} selects arbitrarily from a path, this rewrite will
> ensure that the {{where()}} starts at a local star graph and not a "reference
> element" in the path object.
> Note that {{PathProcessorStrategy}} already has test cases for this too
> (commented out). Just uncomment stuff and go!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)