Marko A. Rodriguez created TINKERPOP-1473:
---------------------------------------------
Summary: 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)