xxlaykxx commented on PR #837:
URL: https://github.com/apache/arrow-java/pull/837#issuecomment-3341283469

   > I guess my question is then, how does this work if we have more than one 
extension type (e.g. a struct vector with two extension type fields), given 
that everything is based around having 0 or 1 `ExtensionTypeWriterFactory`s?
   
   Because **ExtensionTypeWriterFactory.getWriterImpl** will return a writer 
based on vector type, so if will be several extension types -  
**getWriterImpl** should just handle this something like
   
   ```
   if (extensionTypeVector instanceof TimeStampWithPrecisionVector) {
         return new TimeStampWithPrecisionWriterImpl(
             (TimeStampWithPrecisionVector) extensionTypeVector);
   } else if (extensionTypeVector instanceof UuidVector) {
         return new UuidWriterImpl((UuidVector) extensionTypeVector);
   }
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to