nealrichardson commented on pull request #8256:
URL: https://github.com/apache/arrow/pull/8256#issuecomment-698996362


   > I'm not clear yet about the classes that are currently handled with 
`$..dispatch()` methods in R.
   
   I can think of a few possibilities (as I'm sure you can):
   
   1. List out all of the base classes that have the dispatch methods 
explicitly, just as you are with the class to R6 mapping, and do it directly 
(there are only 6 ..dispatch methods defined)
   2. Detect whether the R6 object created has a ..dispatch method and if so, 
call it (though we'd need to be careful that this doesn't trigger recursively)
   3. Presumably a function that has a return signature e.g. 
`std::shared_ptr<arrow::Array>` doesn't actually reveal that the returned 
object is `std::shared_ptr<arrow::StructArray>` or whatever subclass, but if it 
did, then ..dispatch goes away entirely and every class gets enumerated 
explicitly.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to