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

Pick.any and Pick.none are not in GraphSON or Gremlin-Python

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.4, 3.2.2
    • 3.2.3, 3.3.0
    • io, process, python
    • None

    Description

      There are numerous "tokens" (enums) in Gremlin – T, Order, Compare, etc.

      We forgot Pick. Doh. Pick is used in branch-options to support "default" and "all"-type semantics in switch behavior. We need to add it to GraphSON and Gremlin-Python.

      More generally, I think we should consolidate all the "tokens" into a single Java file.

      public class Tokens {
        public enum T { .. }
        public enum Order { .. }
        public enum VertexCardinality { ..}
        public enum Compare { .. }
        public enum Pick { .. } 
        ...
      }
      

      We could make it backwards compatible by:

      T.label = Tokens.T.label.
      

      By having all this consolidate, we will more easily know what we have and will be better able to use reflection in language variant generators.

      Attachments

        Issue Links

          Activity

            People

              okram Marko A. Rodriguez
              okram Marko A. Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: