[ 
https://issues.apache.org/jira/browse/TINKERPOP-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18021261#comment-18021261
 ] 

ASF GitHub Bot commented on TINKERPOP-2234:
-------------------------------------------

xiazcy opened a new pull request, #3211:
URL: https://github.com/apache/tinkerpop/pull/3211

   https://issues.apache.org/jira/browse/TINKERPOP-2234
   
   Implementation based on the [proposal in 
review](https://github.com/apache/tinkerpop/pull/3207). 
   
   Added `P.typeOf()` predicate, which recognized a new set of `GType` enum 
token, `String` as registered in the `GlobalTypeCache`, as well as `Class` in 
Java/Groovy usage. 
   
   Main implementation is ready to be reviewed. Listing here a couple of 
remaining tasks, and keeping this as draft until proposal is merged.
   - [ ] Proposal merged
   - [ ] Replaced `N` with `GType`
   - [ ] Additional tests added
   - [ ] Documentations added
   




> Introduce Type Predicate
> ------------------------
>
>                 Key: TINKERPOP-2234
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2234
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.4.2
>            Reporter: Stephen Mallette
>            Priority: Major
>
> Provide for a {{typeOf()}} predicate that allows for testing the type of an 
> object which would enable neat things like:
> {code}
> g.V().outE().has('weight',gt(0.1)).inV().path().unfold().is(typeOf(VERTEX))
> {code}
> See the linked DISCUSS thread for more information.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to