Title: How to enable Gzip or Zstd compression on Arrow Flight Service · apache/arrow-java · Discussion #944 · GitHub
Open Graph Title: How to enable Gzip or Zstd compression on Arrow Flight Service · apache/arrow-java · Discussion #944
X Title: How to enable Gzip or Zstd compression on Arrow Flight Service · apache/arrow-java · Discussion #944
Description: How to enable Gzip or Zstd compression on Arrow Flight Service
Open Graph Description: I have gotten my service to work with Arrow Flight, but need to enable compression. The FlightServer.Builder and FlightClient.builder constructs don't expose any API for adding compression. Is this...
X Description: I have gotten my service to work with Arrow Flight, but need to enable compression. The FlightServer.Builder and FlightClient.builder constructs don't expose any API for adding compression. Is ...
Opengraph URL: https://github.com/apache/arrow-java/discussions/944
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How to enable Gzip or Zstd compression on Arrow Flight Service","text":"I have gotten my service to work with Arrow Flight, but need to enable compression.
\nThe FlightServer.Builder and FlightClient.builder constructs don't expose any API for adding compression.
\nIs this possible? Can I get some pointers?
\nGenerative AI tools are hallucinating on this question with spurious methods to add interceptors and compression on the builders. I don't see them on the Arrow Flight API.
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Use gRPC directly:
\n \n \n arrow-java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightGrpcUtils.java\n
\n \n Lines 127 to 142\n in\n 385b51e\n
\n \n \n \n\n \n \n /** \n \n\n \n \n * Creates a Flight service. \n \n\n \n \n * \n \n\n \n \n * @param allocator Memory allocator \n \n\n \n \n * @param producer Specifies the service api \n \n\n \n \n * @param authHandler Authentication handler \n \n\n \n \n * @param executor Executor service \n \n\n \n \n * @return FlightBindingService \n \n\n \n \n */ \n \n\n \n \n public static BindableService createFlightService( \n \n\n \n \n BufferAllocator allocator, \n \n\n \n \n FlightProducer producer, \n \n\n \n \n ServerAuthHandler authHandler, \n \n\n \n \n ExecutorService executor) { \n \n\n \n \n return new FlightBindingService(allocator, producer, authHandler, executor); \n \n\n \n \n } \n \n
\n \n\n","upvoteCount":1,"url":"https://github.com/apache/arrow-java/discussions/944#discussioncomment-15409925"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:3a408976-26d5-434c-4615-3fbdc56f200d |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | C23A:12E2F2:863B2B:ADF499:699231FB |
| html-safe-nonce | 65f5b4e1f90ad736aee174d2305016ba0481023b58486e794f9cfeb6db2ee45f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjNBOjEyRTJGMjo4NjNCMkI6QURGNDk5OjY5OTIzMUZCIiwidmlzaXRvcl9pZCI6IjE1ODEzOTk5NTUwNjY3Mjg5NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4f3e6485909717e1e3eff62d747a582f205a618a0d2b50544112615ff61734c2 |
| hovercard-subject-tag | discussion:9307127 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/apache/arrow-java/944/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/813614c38a46d69a71f3be7d4952ee38ca75b7cf47ad972e52be2dc602d47f8b/apache/arrow-java/discussions/944 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/813614c38a46d69a71f3be7d4952ee38ca75b7cf47ad972e52be2dc602d47f8b/apache/arrow-java/discussions/944 |
| og:image:alt | I have gotten my service to work with Arrow Flight, but need to enable compression. The FlightServer.Builder and FlightClient.builder constructs don't expose any API for adding compression. Is this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/arrow-java git https://github.com/apache/arrow-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 893682219 |
| octolytics-dimension-repository_nwo | apache/arrow-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 893682219 |
| octolytics-dimension-repository_network_root_nwo | apache/arrow-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width