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

[C++] Document Array::accept() and ArrayVisitor

    XMLWordPrintableJSON

Details

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

    Description

      We mention in the docs that:

      The classes arrow::Array and its subclasses provide strongly-typed accessors with support for the visitor pattern and other affordances.

      But ArrayVisitor class and the Array::Accept() method are missing from the API docs. We should add those, and potentially also provide an example of using the visitor.

      Likely worth doing the same for TypeVisitor and ScalarVisitor. It would also be nice to document the performance implication of using ScalarVisitor vs ArrayVisitor. Also we use an "inline" version of the visitors; is that something we do/should expose in the API as well?

      Attachments

        Issue Links

          Activity

            People

              wjones127 Will Jones
              wjones127 Will Jones
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h 10m
                  1h 10m