micromegas 0.2.3__py3-none-any.whl → 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- micromegas/__init__.py +5 -2
- micromegas/flightsql/FlightSql_pb2.py +166 -0
- micromegas/flightsql/FlightSql_pb2_grpc.py +24 -0
- micromegas/flightsql/Flight_pb2.py +116 -0
- micromegas/flightsql/Flight_pb2_grpc.py +579 -0
- micromegas/flightsql/__init__.py +10 -0
- micromegas/flightsql/arrow_flatbuffers.py +2925 -0
- micromegas/flightsql/arrow_ipc_reader.py +99 -0
- micromegas/flightsql/client.py +255 -0
- micromegas/flightsql/time.py +17 -0
- {micromegas-0.2.3.dist-info → micromegas-0.3.0.dist-info}/METADATA +5 -3
- {micromegas-0.2.3.dist-info → micromegas-0.3.0.dist-info}/RECORD +13 -4
- {micromegas-0.2.3.dist-info → micromegas-0.3.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,579 @@
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
3
|
+
import grpc
|
4
|
+
import warnings
|
5
|
+
|
6
|
+
from . import Flight_pb2 as Flight__pb2
|
7
|
+
|
8
|
+
GRPC_GENERATED_VERSION = '1.68.1'
|
9
|
+
GRPC_VERSION = grpc.__version__
|
10
|
+
_version_not_supported = False
|
11
|
+
|
12
|
+
try:
|
13
|
+
from grpc._utilities import first_version_is_lower
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
15
|
+
except ImportError:
|
16
|
+
_version_not_supported = True
|
17
|
+
|
18
|
+
if _version_not_supported:
|
19
|
+
raise RuntimeError(
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
21
|
+
+ f' but the generated code in Flight_pb2_grpc.py depends on'
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
25
|
+
)
|
26
|
+
|
27
|
+
|
28
|
+
class FlightServiceStub(object):
|
29
|
+
"""
|
30
|
+
A flight service is an endpoint for retrieving or storing Arrow data. A
|
31
|
+
flight service can expose one or more predefined endpoints that can be
|
32
|
+
accessed using the Arrow Flight Protocol. Additionally, a flight service
|
33
|
+
can expose a set of actions that are available.
|
34
|
+
"""
|
35
|
+
|
36
|
+
def __init__(self, channel):
|
37
|
+
"""Constructor.
|
38
|
+
|
39
|
+
Args:
|
40
|
+
channel: A grpc.Channel.
|
41
|
+
"""
|
42
|
+
self.Handshake = channel.stream_stream(
|
43
|
+
'/arrow.flight.protocol.FlightService/Handshake',
|
44
|
+
request_serializer=Flight__pb2.HandshakeRequest.SerializeToString,
|
45
|
+
response_deserializer=Flight__pb2.HandshakeResponse.FromString,
|
46
|
+
_registered_method=True)
|
47
|
+
self.ListFlights = channel.unary_stream(
|
48
|
+
'/arrow.flight.protocol.FlightService/ListFlights',
|
49
|
+
request_serializer=Flight__pb2.Criteria.SerializeToString,
|
50
|
+
response_deserializer=Flight__pb2.FlightInfo.FromString,
|
51
|
+
_registered_method=True)
|
52
|
+
self.GetFlightInfo = channel.unary_unary(
|
53
|
+
'/arrow.flight.protocol.FlightService/GetFlightInfo',
|
54
|
+
request_serializer=Flight__pb2.FlightDescriptor.SerializeToString,
|
55
|
+
response_deserializer=Flight__pb2.FlightInfo.FromString,
|
56
|
+
_registered_method=True)
|
57
|
+
self.PollFlightInfo = channel.unary_unary(
|
58
|
+
'/arrow.flight.protocol.FlightService/PollFlightInfo',
|
59
|
+
request_serializer=Flight__pb2.FlightDescriptor.SerializeToString,
|
60
|
+
response_deserializer=Flight__pb2.PollInfo.FromString,
|
61
|
+
_registered_method=True)
|
62
|
+
self.GetSchema = channel.unary_unary(
|
63
|
+
'/arrow.flight.protocol.FlightService/GetSchema',
|
64
|
+
request_serializer=Flight__pb2.FlightDescriptor.SerializeToString,
|
65
|
+
response_deserializer=Flight__pb2.SchemaResult.FromString,
|
66
|
+
_registered_method=True)
|
67
|
+
self.DoGet = channel.unary_stream(
|
68
|
+
'/arrow.flight.protocol.FlightService/DoGet',
|
69
|
+
request_serializer=Flight__pb2.Ticket.SerializeToString,
|
70
|
+
response_deserializer=Flight__pb2.FlightData.FromString,
|
71
|
+
_registered_method=True)
|
72
|
+
self.DoPut = channel.stream_stream(
|
73
|
+
'/arrow.flight.protocol.FlightService/DoPut',
|
74
|
+
request_serializer=Flight__pb2.FlightData.SerializeToString,
|
75
|
+
response_deserializer=Flight__pb2.PutResult.FromString,
|
76
|
+
_registered_method=True)
|
77
|
+
self.DoExchange = channel.stream_stream(
|
78
|
+
'/arrow.flight.protocol.FlightService/DoExchange',
|
79
|
+
request_serializer=Flight__pb2.FlightData.SerializeToString,
|
80
|
+
response_deserializer=Flight__pb2.FlightData.FromString,
|
81
|
+
_registered_method=True)
|
82
|
+
self.DoAction = channel.unary_stream(
|
83
|
+
'/arrow.flight.protocol.FlightService/DoAction',
|
84
|
+
request_serializer=Flight__pb2.Action.SerializeToString,
|
85
|
+
response_deserializer=Flight__pb2.Result.FromString,
|
86
|
+
_registered_method=True)
|
87
|
+
self.ListActions = channel.unary_stream(
|
88
|
+
'/arrow.flight.protocol.FlightService/ListActions',
|
89
|
+
request_serializer=Flight__pb2.Empty.SerializeToString,
|
90
|
+
response_deserializer=Flight__pb2.ActionType.FromString,
|
91
|
+
_registered_method=True)
|
92
|
+
|
93
|
+
|
94
|
+
class FlightServiceServicer(object):
|
95
|
+
"""
|
96
|
+
A flight service is an endpoint for retrieving or storing Arrow data. A
|
97
|
+
flight service can expose one or more predefined endpoints that can be
|
98
|
+
accessed using the Arrow Flight Protocol. Additionally, a flight service
|
99
|
+
can expose a set of actions that are available.
|
100
|
+
"""
|
101
|
+
|
102
|
+
def Handshake(self, request_iterator, context):
|
103
|
+
"""
|
104
|
+
Handshake between client and server. Depending on the server, the
|
105
|
+
handshake may be required to determine the token that should be used for
|
106
|
+
future operations. Both request and response are streams to allow multiple
|
107
|
+
round-trips depending on auth mechanism.
|
108
|
+
"""
|
109
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
110
|
+
context.set_details('Method not implemented!')
|
111
|
+
raise NotImplementedError('Method not implemented!')
|
112
|
+
|
113
|
+
def ListFlights(self, request, context):
|
114
|
+
"""
|
115
|
+
Get a list of available streams given a particular criteria. Most flight
|
116
|
+
services will expose one or more streams that are readily available for
|
117
|
+
retrieval. This api allows listing the streams available for
|
118
|
+
consumption. A user can also provide a criteria. The criteria can limit
|
119
|
+
the subset of streams that can be listed via this interface. Each flight
|
120
|
+
service allows its own definition of how to consume criteria.
|
121
|
+
"""
|
122
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
123
|
+
context.set_details('Method not implemented!')
|
124
|
+
raise NotImplementedError('Method not implemented!')
|
125
|
+
|
126
|
+
def GetFlightInfo(self, request, context):
|
127
|
+
"""
|
128
|
+
For a given FlightDescriptor, get information about how the flight can be
|
129
|
+
consumed. This is a useful interface if the consumer of the interface
|
130
|
+
already can identify the specific flight to consume. This interface can
|
131
|
+
also allow a consumer to generate a flight stream through a specified
|
132
|
+
descriptor. For example, a flight descriptor might be something that
|
133
|
+
includes a SQL statement or a Pickled Python operation that will be
|
134
|
+
executed. In those cases, the descriptor will not be previously available
|
135
|
+
within the list of available streams provided by ListFlights but will be
|
136
|
+
available for consumption for the duration defined by the specific flight
|
137
|
+
service.
|
138
|
+
"""
|
139
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
140
|
+
context.set_details('Method not implemented!')
|
141
|
+
raise NotImplementedError('Method not implemented!')
|
142
|
+
|
143
|
+
def PollFlightInfo(self, request, context):
|
144
|
+
"""
|
145
|
+
For a given FlightDescriptor, start a query and get information
|
146
|
+
to poll its execution status. This is a useful interface if the
|
147
|
+
query may be a long-running query. The first PollFlightInfo call
|
148
|
+
should return as quickly as possible. (GetFlightInfo doesn't
|
149
|
+
return until the query is complete.)
|
150
|
+
|
151
|
+
A client can consume any available results before
|
152
|
+
the query is completed. See PollInfo.info for details.
|
153
|
+
|
154
|
+
A client can poll the updated query status by calling
|
155
|
+
PollFlightInfo() with PollInfo.flight_descriptor. A server
|
156
|
+
should not respond until the result would be different from last
|
157
|
+
time. That way, the client can "long poll" for updates
|
158
|
+
without constantly making requests. Clients can set a short timeout
|
159
|
+
to avoid blocking calls if desired.
|
160
|
+
|
161
|
+
A client can't use PollInfo.flight_descriptor after
|
162
|
+
PollInfo.expiration_time passes. A server might not accept the
|
163
|
+
retry descriptor anymore and the query may be cancelled.
|
164
|
+
|
165
|
+
A client may use the CancelFlightInfo action with
|
166
|
+
PollInfo.info to cancel the running query.
|
167
|
+
"""
|
168
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
169
|
+
context.set_details('Method not implemented!')
|
170
|
+
raise NotImplementedError('Method not implemented!')
|
171
|
+
|
172
|
+
def GetSchema(self, request, context):
|
173
|
+
"""
|
174
|
+
For a given FlightDescriptor, get the Schema as described in Schema.fbs::Schema
|
175
|
+
This is used when a consumer needs the Schema of flight stream. Similar to
|
176
|
+
GetFlightInfo this interface may generate a new flight that was not previously
|
177
|
+
available in ListFlights.
|
178
|
+
"""
|
179
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
180
|
+
context.set_details('Method not implemented!')
|
181
|
+
raise NotImplementedError('Method not implemented!')
|
182
|
+
|
183
|
+
def DoGet(self, request, context):
|
184
|
+
"""
|
185
|
+
Retrieve a single stream associated with a particular descriptor
|
186
|
+
associated with the referenced ticket. A Flight can be composed of one or
|
187
|
+
more streams where each stream can be retrieved using a separate opaque
|
188
|
+
ticket that the flight service uses for managing a collection of streams.
|
189
|
+
"""
|
190
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
191
|
+
context.set_details('Method not implemented!')
|
192
|
+
raise NotImplementedError('Method not implemented!')
|
193
|
+
|
194
|
+
def DoPut(self, request_iterator, context):
|
195
|
+
"""
|
196
|
+
Push a stream to the flight service associated with a particular
|
197
|
+
flight stream. This allows a client of a flight service to upload a stream
|
198
|
+
of data. Depending on the particular flight service, a client consumer
|
199
|
+
could be allowed to upload a single stream per descriptor or an unlimited
|
200
|
+
number. In the latter, the service might implement a 'seal' action that
|
201
|
+
can be applied to a descriptor once all streams are uploaded.
|
202
|
+
"""
|
203
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
204
|
+
context.set_details('Method not implemented!')
|
205
|
+
raise NotImplementedError('Method not implemented!')
|
206
|
+
|
207
|
+
def DoExchange(self, request_iterator, context):
|
208
|
+
"""
|
209
|
+
Open a bidirectional data channel for a given descriptor. This
|
210
|
+
allows clients to send and receive arbitrary Arrow data and
|
211
|
+
application-specific metadata in a single logical stream. In
|
212
|
+
contrast to DoGet/DoPut, this is more suited for clients
|
213
|
+
offloading computation (rather than storage) to a Flight service.
|
214
|
+
"""
|
215
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
216
|
+
context.set_details('Method not implemented!')
|
217
|
+
raise NotImplementedError('Method not implemented!')
|
218
|
+
|
219
|
+
def DoAction(self, request, context):
|
220
|
+
"""
|
221
|
+
Flight services can support an arbitrary number of simple actions in
|
222
|
+
addition to the possible ListFlights, GetFlightInfo, DoGet, DoPut
|
223
|
+
operations that are potentially available. DoAction allows a flight client
|
224
|
+
to do a specific action against a flight service. An action includes
|
225
|
+
opaque request and response objects that are specific to the type action
|
226
|
+
being undertaken.
|
227
|
+
"""
|
228
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
229
|
+
context.set_details('Method not implemented!')
|
230
|
+
raise NotImplementedError('Method not implemented!')
|
231
|
+
|
232
|
+
def ListActions(self, request, context):
|
233
|
+
"""
|
234
|
+
A flight service exposes all of the available action types that it has
|
235
|
+
along with descriptions. This allows different flight consumers to
|
236
|
+
understand the capabilities of the flight service.
|
237
|
+
"""
|
238
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
239
|
+
context.set_details('Method not implemented!')
|
240
|
+
raise NotImplementedError('Method not implemented!')
|
241
|
+
|
242
|
+
|
243
|
+
def add_FlightServiceServicer_to_server(servicer, server):
|
244
|
+
rpc_method_handlers = {
|
245
|
+
'Handshake': grpc.stream_stream_rpc_method_handler(
|
246
|
+
servicer.Handshake,
|
247
|
+
request_deserializer=Flight__pb2.HandshakeRequest.FromString,
|
248
|
+
response_serializer=Flight__pb2.HandshakeResponse.SerializeToString,
|
249
|
+
),
|
250
|
+
'ListFlights': grpc.unary_stream_rpc_method_handler(
|
251
|
+
servicer.ListFlights,
|
252
|
+
request_deserializer=Flight__pb2.Criteria.FromString,
|
253
|
+
response_serializer=Flight__pb2.FlightInfo.SerializeToString,
|
254
|
+
),
|
255
|
+
'GetFlightInfo': grpc.unary_unary_rpc_method_handler(
|
256
|
+
servicer.GetFlightInfo,
|
257
|
+
request_deserializer=Flight__pb2.FlightDescriptor.FromString,
|
258
|
+
response_serializer=Flight__pb2.FlightInfo.SerializeToString,
|
259
|
+
),
|
260
|
+
'PollFlightInfo': grpc.unary_unary_rpc_method_handler(
|
261
|
+
servicer.PollFlightInfo,
|
262
|
+
request_deserializer=Flight__pb2.FlightDescriptor.FromString,
|
263
|
+
response_serializer=Flight__pb2.PollInfo.SerializeToString,
|
264
|
+
),
|
265
|
+
'GetSchema': grpc.unary_unary_rpc_method_handler(
|
266
|
+
servicer.GetSchema,
|
267
|
+
request_deserializer=Flight__pb2.FlightDescriptor.FromString,
|
268
|
+
response_serializer=Flight__pb2.SchemaResult.SerializeToString,
|
269
|
+
),
|
270
|
+
'DoGet': grpc.unary_stream_rpc_method_handler(
|
271
|
+
servicer.DoGet,
|
272
|
+
request_deserializer=Flight__pb2.Ticket.FromString,
|
273
|
+
response_serializer=Flight__pb2.FlightData.SerializeToString,
|
274
|
+
),
|
275
|
+
'DoPut': grpc.stream_stream_rpc_method_handler(
|
276
|
+
servicer.DoPut,
|
277
|
+
request_deserializer=Flight__pb2.FlightData.FromString,
|
278
|
+
response_serializer=Flight__pb2.PutResult.SerializeToString,
|
279
|
+
),
|
280
|
+
'DoExchange': grpc.stream_stream_rpc_method_handler(
|
281
|
+
servicer.DoExchange,
|
282
|
+
request_deserializer=Flight__pb2.FlightData.FromString,
|
283
|
+
response_serializer=Flight__pb2.FlightData.SerializeToString,
|
284
|
+
),
|
285
|
+
'DoAction': grpc.unary_stream_rpc_method_handler(
|
286
|
+
servicer.DoAction,
|
287
|
+
request_deserializer=Flight__pb2.Action.FromString,
|
288
|
+
response_serializer=Flight__pb2.Result.SerializeToString,
|
289
|
+
),
|
290
|
+
'ListActions': grpc.unary_stream_rpc_method_handler(
|
291
|
+
servicer.ListActions,
|
292
|
+
request_deserializer=Flight__pb2.Empty.FromString,
|
293
|
+
response_serializer=Flight__pb2.ActionType.SerializeToString,
|
294
|
+
),
|
295
|
+
}
|
296
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
297
|
+
'arrow.flight.protocol.FlightService', rpc_method_handlers)
|
298
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
299
|
+
server.add_registered_method_handlers('arrow.flight.protocol.FlightService', rpc_method_handlers)
|
300
|
+
|
301
|
+
|
302
|
+
# This class is part of an EXPERIMENTAL API.
|
303
|
+
class FlightService(object):
|
304
|
+
"""
|
305
|
+
A flight service is an endpoint for retrieving or storing Arrow data. A
|
306
|
+
flight service can expose one or more predefined endpoints that can be
|
307
|
+
accessed using the Arrow Flight Protocol. Additionally, a flight service
|
308
|
+
can expose a set of actions that are available.
|
309
|
+
"""
|
310
|
+
|
311
|
+
@staticmethod
|
312
|
+
def Handshake(request_iterator,
|
313
|
+
target,
|
314
|
+
options=(),
|
315
|
+
channel_credentials=None,
|
316
|
+
call_credentials=None,
|
317
|
+
insecure=False,
|
318
|
+
compression=None,
|
319
|
+
wait_for_ready=None,
|
320
|
+
timeout=None,
|
321
|
+
metadata=None):
|
322
|
+
return grpc.experimental.stream_stream(
|
323
|
+
request_iterator,
|
324
|
+
target,
|
325
|
+
'/arrow.flight.protocol.FlightService/Handshake',
|
326
|
+
Flight__pb2.HandshakeRequest.SerializeToString,
|
327
|
+
Flight__pb2.HandshakeResponse.FromString,
|
328
|
+
options,
|
329
|
+
channel_credentials,
|
330
|
+
insecure,
|
331
|
+
call_credentials,
|
332
|
+
compression,
|
333
|
+
wait_for_ready,
|
334
|
+
timeout,
|
335
|
+
metadata,
|
336
|
+
_registered_method=True)
|
337
|
+
|
338
|
+
@staticmethod
|
339
|
+
def ListFlights(request,
|
340
|
+
target,
|
341
|
+
options=(),
|
342
|
+
channel_credentials=None,
|
343
|
+
call_credentials=None,
|
344
|
+
insecure=False,
|
345
|
+
compression=None,
|
346
|
+
wait_for_ready=None,
|
347
|
+
timeout=None,
|
348
|
+
metadata=None):
|
349
|
+
return grpc.experimental.unary_stream(
|
350
|
+
request,
|
351
|
+
target,
|
352
|
+
'/arrow.flight.protocol.FlightService/ListFlights',
|
353
|
+
Flight__pb2.Criteria.SerializeToString,
|
354
|
+
Flight__pb2.FlightInfo.FromString,
|
355
|
+
options,
|
356
|
+
channel_credentials,
|
357
|
+
insecure,
|
358
|
+
call_credentials,
|
359
|
+
compression,
|
360
|
+
wait_for_ready,
|
361
|
+
timeout,
|
362
|
+
metadata,
|
363
|
+
_registered_method=True)
|
364
|
+
|
365
|
+
@staticmethod
|
366
|
+
def GetFlightInfo(request,
|
367
|
+
target,
|
368
|
+
options=(),
|
369
|
+
channel_credentials=None,
|
370
|
+
call_credentials=None,
|
371
|
+
insecure=False,
|
372
|
+
compression=None,
|
373
|
+
wait_for_ready=None,
|
374
|
+
timeout=None,
|
375
|
+
metadata=None):
|
376
|
+
return grpc.experimental.unary_unary(
|
377
|
+
request,
|
378
|
+
target,
|
379
|
+
'/arrow.flight.protocol.FlightService/GetFlightInfo',
|
380
|
+
Flight__pb2.FlightDescriptor.SerializeToString,
|
381
|
+
Flight__pb2.FlightInfo.FromString,
|
382
|
+
options,
|
383
|
+
channel_credentials,
|
384
|
+
insecure,
|
385
|
+
call_credentials,
|
386
|
+
compression,
|
387
|
+
wait_for_ready,
|
388
|
+
timeout,
|
389
|
+
metadata,
|
390
|
+
_registered_method=True)
|
391
|
+
|
392
|
+
@staticmethod
|
393
|
+
def PollFlightInfo(request,
|
394
|
+
target,
|
395
|
+
options=(),
|
396
|
+
channel_credentials=None,
|
397
|
+
call_credentials=None,
|
398
|
+
insecure=False,
|
399
|
+
compression=None,
|
400
|
+
wait_for_ready=None,
|
401
|
+
timeout=None,
|
402
|
+
metadata=None):
|
403
|
+
return grpc.experimental.unary_unary(
|
404
|
+
request,
|
405
|
+
target,
|
406
|
+
'/arrow.flight.protocol.FlightService/PollFlightInfo',
|
407
|
+
Flight__pb2.FlightDescriptor.SerializeToString,
|
408
|
+
Flight__pb2.PollInfo.FromString,
|
409
|
+
options,
|
410
|
+
channel_credentials,
|
411
|
+
insecure,
|
412
|
+
call_credentials,
|
413
|
+
compression,
|
414
|
+
wait_for_ready,
|
415
|
+
timeout,
|
416
|
+
metadata,
|
417
|
+
_registered_method=True)
|
418
|
+
|
419
|
+
@staticmethod
|
420
|
+
def GetSchema(request,
|
421
|
+
target,
|
422
|
+
options=(),
|
423
|
+
channel_credentials=None,
|
424
|
+
call_credentials=None,
|
425
|
+
insecure=False,
|
426
|
+
compression=None,
|
427
|
+
wait_for_ready=None,
|
428
|
+
timeout=None,
|
429
|
+
metadata=None):
|
430
|
+
return grpc.experimental.unary_unary(
|
431
|
+
request,
|
432
|
+
target,
|
433
|
+
'/arrow.flight.protocol.FlightService/GetSchema',
|
434
|
+
Flight__pb2.FlightDescriptor.SerializeToString,
|
435
|
+
Flight__pb2.SchemaResult.FromString,
|
436
|
+
options,
|
437
|
+
channel_credentials,
|
438
|
+
insecure,
|
439
|
+
call_credentials,
|
440
|
+
compression,
|
441
|
+
wait_for_ready,
|
442
|
+
timeout,
|
443
|
+
metadata,
|
444
|
+
_registered_method=True)
|
445
|
+
|
446
|
+
@staticmethod
|
447
|
+
def DoGet(request,
|
448
|
+
target,
|
449
|
+
options=(),
|
450
|
+
channel_credentials=None,
|
451
|
+
call_credentials=None,
|
452
|
+
insecure=False,
|
453
|
+
compression=None,
|
454
|
+
wait_for_ready=None,
|
455
|
+
timeout=None,
|
456
|
+
metadata=None):
|
457
|
+
return grpc.experimental.unary_stream(
|
458
|
+
request,
|
459
|
+
target,
|
460
|
+
'/arrow.flight.protocol.FlightService/DoGet',
|
461
|
+
Flight__pb2.Ticket.SerializeToString,
|
462
|
+
Flight__pb2.FlightData.FromString,
|
463
|
+
options,
|
464
|
+
channel_credentials,
|
465
|
+
insecure,
|
466
|
+
call_credentials,
|
467
|
+
compression,
|
468
|
+
wait_for_ready,
|
469
|
+
timeout,
|
470
|
+
metadata,
|
471
|
+
_registered_method=True)
|
472
|
+
|
473
|
+
@staticmethod
|
474
|
+
def DoPut(request_iterator,
|
475
|
+
target,
|
476
|
+
options=(),
|
477
|
+
channel_credentials=None,
|
478
|
+
call_credentials=None,
|
479
|
+
insecure=False,
|
480
|
+
compression=None,
|
481
|
+
wait_for_ready=None,
|
482
|
+
timeout=None,
|
483
|
+
metadata=None):
|
484
|
+
return grpc.experimental.stream_stream(
|
485
|
+
request_iterator,
|
486
|
+
target,
|
487
|
+
'/arrow.flight.protocol.FlightService/DoPut',
|
488
|
+
Flight__pb2.FlightData.SerializeToString,
|
489
|
+
Flight__pb2.PutResult.FromString,
|
490
|
+
options,
|
491
|
+
channel_credentials,
|
492
|
+
insecure,
|
493
|
+
call_credentials,
|
494
|
+
compression,
|
495
|
+
wait_for_ready,
|
496
|
+
timeout,
|
497
|
+
metadata,
|
498
|
+
_registered_method=True)
|
499
|
+
|
500
|
+
@staticmethod
|
501
|
+
def DoExchange(request_iterator,
|
502
|
+
target,
|
503
|
+
options=(),
|
504
|
+
channel_credentials=None,
|
505
|
+
call_credentials=None,
|
506
|
+
insecure=False,
|
507
|
+
compression=None,
|
508
|
+
wait_for_ready=None,
|
509
|
+
timeout=None,
|
510
|
+
metadata=None):
|
511
|
+
return grpc.experimental.stream_stream(
|
512
|
+
request_iterator,
|
513
|
+
target,
|
514
|
+
'/arrow.flight.protocol.FlightService/DoExchange',
|
515
|
+
Flight__pb2.FlightData.SerializeToString,
|
516
|
+
Flight__pb2.FlightData.FromString,
|
517
|
+
options,
|
518
|
+
channel_credentials,
|
519
|
+
insecure,
|
520
|
+
call_credentials,
|
521
|
+
compression,
|
522
|
+
wait_for_ready,
|
523
|
+
timeout,
|
524
|
+
metadata,
|
525
|
+
_registered_method=True)
|
526
|
+
|
527
|
+
@staticmethod
|
528
|
+
def DoAction(request,
|
529
|
+
target,
|
530
|
+
options=(),
|
531
|
+
channel_credentials=None,
|
532
|
+
call_credentials=None,
|
533
|
+
insecure=False,
|
534
|
+
compression=None,
|
535
|
+
wait_for_ready=None,
|
536
|
+
timeout=None,
|
537
|
+
metadata=None):
|
538
|
+
return grpc.experimental.unary_stream(
|
539
|
+
request,
|
540
|
+
target,
|
541
|
+
'/arrow.flight.protocol.FlightService/DoAction',
|
542
|
+
Flight__pb2.Action.SerializeToString,
|
543
|
+
Flight__pb2.Result.FromString,
|
544
|
+
options,
|
545
|
+
channel_credentials,
|
546
|
+
insecure,
|
547
|
+
call_credentials,
|
548
|
+
compression,
|
549
|
+
wait_for_ready,
|
550
|
+
timeout,
|
551
|
+
metadata,
|
552
|
+
_registered_method=True)
|
553
|
+
|
554
|
+
@staticmethod
|
555
|
+
def ListActions(request,
|
556
|
+
target,
|
557
|
+
options=(),
|
558
|
+
channel_credentials=None,
|
559
|
+
call_credentials=None,
|
560
|
+
insecure=False,
|
561
|
+
compression=None,
|
562
|
+
wait_for_ready=None,
|
563
|
+
timeout=None,
|
564
|
+
metadata=None):
|
565
|
+
return grpc.experimental.unary_stream(
|
566
|
+
request,
|
567
|
+
target,
|
568
|
+
'/arrow.flight.protocol.FlightService/ListActions',
|
569
|
+
Flight__pb2.Empty.SerializeToString,
|
570
|
+
Flight__pb2.ActionType.FromString,
|
571
|
+
options,
|
572
|
+
channel_credentials,
|
573
|
+
insecure,
|
574
|
+
call_credentials,
|
575
|
+
compression,
|
576
|
+
wait_for_ready,
|
577
|
+
timeout,
|
578
|
+
metadata,
|
579
|
+
_registered_method=True)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# protobufs
|
2
|
+
from . import Flight_pb2
|
3
|
+
from . import Flight_pb2_grpc
|
4
|
+
from . import FlightSql_pb2
|
5
|
+
from . import FlightSql_pb2_grpc
|
6
|
+
# arrow deserialization
|
7
|
+
from . import arrow_flatbuffers
|
8
|
+
from . import arrow_ipc_reader
|
9
|
+
# client API
|
10
|
+
from . import client
|