Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1403

Provide support for GraphFilter.vertexProperties()

    XMLWordPrintableJSON

Details

    Description

      rspitzer stated that he is working with a graph that has millions of vertex properties on a vertex. If those properties are not needed for the traversal, then they should be filtered out.

      Much like GraphFilter.edges(), we should add GraphFilter.vertexProperties(Traversal<Vertex,VertexProperty>). That is, from the Vertex in question, traverse to those properties needed in the computation, where properties().limit(0) would be the push down predicate for "no properties." Another example, properties("income") would only provide income properties. Another example, properties("income").has("acl","public") would provide only those income properties that are public (according to access control).

      — SIDENOTE. In the docs we have bothE().limit(0) as the predicate for no edges. However, limit(0) by itself is sufficient. Likewise for GraphFilter.vertexProperties().

      Attachments

        Issue Links

          Activity

            People

              colegreer Cole Greer
              okram Marko A. Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: