lidavidm commented on issue #34778:
URL: https://github.com/apache/arrow/issues/34778#issuecomment-1489373337
Not quite, directly exposing gRPC is specifically what we have tried to
avoid.
I'm thinking something like (directly off the top of my head, not sure if
this compiles)
```java
<T> Builder withTransportHook(Consumer<T> hook) {
if (grpcBuilder instanceof T) {
hook.accept((T) grpcBuilder);
} else {
// raise exception
}
}
// ...
FlightServer.builder().withTransportHook<NettyServerBuilder>((nsb) -> {
nsb.registerService(...); })...;
```
(Go and Rust forego flexibility and directly tie themselves to the gRPC API:
that means that a project like Flight-UCX is not possible in those languages,
not without rewriting your Flight client/service. That's what we are trying to
avoid.)
--
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]