Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15975

[C++] Document VisitArrayInline and type traits

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.0.0
    • 8.0.0
    • C++

    Description

      In ARROW-15952, we documented the ArrayVisitor and TypeVisitor classes. But as I discovered in a cookbook PR, you can't subclass these abstract visitors and use type traits. Now I know why most visitor implementations within of Arrow don't subclasses these.

      We should instead suggest users simply use the VisitArrayInline and VisitTypeInline with their visitors, and ignore the ArrayVisitor and TypeVisitor classes and associated Accept() methods. In fact, can we deprecate (or even remove) those? Do they add anything valuable?

      Attachments

        Issue Links

          Activity

            People

              wjones127 Will Jones
              wjones127 Will Jones
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m