@qualithm/arrow-flight-client 0.1.0
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.
- package/LICENSE +190 -0
- package/README.md +258 -0
- package/dist/client/create-flight-client.d.ts +28 -0
- package/dist/client/create-flight-client.d.ts.map +1 -0
- package/dist/client/create-flight-client.js +29 -0
- package/dist/client/create-flight-client.js.map +1 -0
- package/dist/client/create-flight-sql-client.d.ts +28 -0
- package/dist/client/create-flight-sql-client.d.ts.map +1 -0
- package/dist/client/create-flight-sql-client.js +29 -0
- package/dist/client/create-flight-sql-client.js.map +1 -0
- package/dist/client/errors.d.ts +81 -0
- package/dist/client/errors.d.ts.map +1 -0
- package/dist/client/errors.js +106 -0
- package/dist/client/errors.js.map +1 -0
- package/dist/client/flight-client.d.ts +161 -0
- package/dist/client/flight-client.d.ts.map +1 -0
- package/dist/client/flight-client.js +403 -0
- package/dist/client/flight-client.js.map +1 -0
- package/dist/client/flight-sql-client.d.ts +348 -0
- package/dist/client/flight-sql-client.d.ts.map +1 -0
- package/dist/client/flight-sql-client.js +689 -0
- package/dist/client/flight-sql-client.js.map +1 -0
- package/dist/client/index.d.ts +11 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +10 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/ipc.d.ts +131 -0
- package/dist/client/ipc.d.ts.map +1 -0
- package/dist/client/ipc.js +246 -0
- package/dist/client/ipc.js.map +1 -0
- package/dist/client/types.d.ts +153 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +26 -0
- package/dist/client/types.js.map +1 -0
- package/dist/gen/arrow/flight/FlightSql_pb.d.ts +3173 -0
- package/dist/gen/arrow/flight/FlightSql_pb.d.ts.map +1 -0
- package/dist/gen/arrow/flight/FlightSql_pb.js +2258 -0
- package/dist/gen/arrow/flight/FlightSql_pb.js.map +1 -0
- package/dist/gen/arrow/flight/Flight_pb.d.ts +1159 -0
- package/dist/gen/arrow/flight/Flight_pb.d.ts.map +1 -0
- package/dist/gen/arrow/flight/Flight_pb.js +397 -0
- package/dist/gen/arrow/flight/Flight_pb.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/package.json +96 -0
|
@@ -0,0 +1,1159 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file arrow/flight/Flight.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_arrow_flight_Flight: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* The request that a client provides to a server on handshake.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message arrow.flight.protocol.HandshakeRequest
|
|
13
|
+
*/
|
|
14
|
+
export type HandshakeRequest = Message<"arrow.flight.protocol.HandshakeRequest"> & {
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* A defined protocol version
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: uint64 protocol_version = 1;
|
|
20
|
+
*/
|
|
21
|
+
protocolVersion: bigint;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* Arbitrary auth/handshake info.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: bytes payload = 2;
|
|
27
|
+
*/
|
|
28
|
+
payload: Uint8Array;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message arrow.flight.protocol.HandshakeRequest.
|
|
32
|
+
* Use `create(HandshakeRequestSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export declare const HandshakeRequestSchema: GenMessage<HandshakeRequest>;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from message arrow.flight.protocol.HandshakeResponse
|
|
37
|
+
*/
|
|
38
|
+
export type HandshakeResponse = Message<"arrow.flight.protocol.HandshakeResponse"> & {
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* A defined protocol version
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: uint64 protocol_version = 1;
|
|
44
|
+
*/
|
|
45
|
+
protocolVersion: bigint;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* Arbitrary auth/handshake info.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: bytes payload = 2;
|
|
51
|
+
*/
|
|
52
|
+
payload: Uint8Array;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message arrow.flight.protocol.HandshakeResponse.
|
|
56
|
+
* Use `create(HandshakeResponseSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export declare const HandshakeResponseSchema: GenMessage<HandshakeResponse>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* A message for doing simple auth.
|
|
62
|
+
*
|
|
63
|
+
* @generated from message arrow.flight.protocol.BasicAuth
|
|
64
|
+
*/
|
|
65
|
+
export type BasicAuth = Message<"arrow.flight.protocol.BasicAuth"> & {
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: string username = 2;
|
|
68
|
+
*/
|
|
69
|
+
username: string;
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string password = 3;
|
|
72
|
+
*/
|
|
73
|
+
password: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Describes the message arrow.flight.protocol.BasicAuth.
|
|
77
|
+
* Use `create(BasicAuthSchema)` to create a new message.
|
|
78
|
+
*/
|
|
79
|
+
export declare const BasicAuthSchema: GenMessage<BasicAuth>;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message arrow.flight.protocol.Empty
|
|
82
|
+
*/
|
|
83
|
+
export type Empty = Message<"arrow.flight.protocol.Empty"> & {};
|
|
84
|
+
/**
|
|
85
|
+
* Describes the message arrow.flight.protocol.Empty.
|
|
86
|
+
* Use `create(EmptySchema)` to create a new message.
|
|
87
|
+
*/
|
|
88
|
+
export declare const EmptySchema: GenMessage<Empty>;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* Describes an available action, including both the name used for execution
|
|
92
|
+
* along with a short description of the purpose of the action.
|
|
93
|
+
*
|
|
94
|
+
* @generated from message arrow.flight.protocol.ActionType
|
|
95
|
+
*/
|
|
96
|
+
export type ActionType = Message<"arrow.flight.protocol.ActionType"> & {
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: string type = 1;
|
|
99
|
+
*/
|
|
100
|
+
type: string;
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: string description = 2;
|
|
103
|
+
*/
|
|
104
|
+
description: string;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Describes the message arrow.flight.protocol.ActionType.
|
|
108
|
+
* Use `create(ActionTypeSchema)` to create a new message.
|
|
109
|
+
*/
|
|
110
|
+
export declare const ActionTypeSchema: GenMessage<ActionType>;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* A service specific expression that can be used to return a limited set
|
|
114
|
+
* of available Arrow Flight streams.
|
|
115
|
+
*
|
|
116
|
+
* @generated from message arrow.flight.protocol.Criteria
|
|
117
|
+
*/
|
|
118
|
+
export type Criteria = Message<"arrow.flight.protocol.Criteria"> & {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: bytes expression = 1;
|
|
121
|
+
*/
|
|
122
|
+
expression: Uint8Array;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Describes the message arrow.flight.protocol.Criteria.
|
|
126
|
+
* Use `create(CriteriaSchema)` to create a new message.
|
|
127
|
+
*/
|
|
128
|
+
export declare const CriteriaSchema: GenMessage<Criteria>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* An opaque action specific for the service.
|
|
132
|
+
*
|
|
133
|
+
* @generated from message arrow.flight.protocol.Action
|
|
134
|
+
*/
|
|
135
|
+
export type Action = Message<"arrow.flight.protocol.Action"> & {
|
|
136
|
+
/**
|
|
137
|
+
* @generated from field: string type = 1;
|
|
138
|
+
*/
|
|
139
|
+
type: string;
|
|
140
|
+
/**
|
|
141
|
+
* @generated from field: bytes body = 2;
|
|
142
|
+
*/
|
|
143
|
+
body: Uint8Array;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Describes the message arrow.flight.protocol.Action.
|
|
147
|
+
* Use `create(ActionSchema)` to create a new message.
|
|
148
|
+
*/
|
|
149
|
+
export declare const ActionSchema: GenMessage<Action>;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* An opaque result returned after executing an action.
|
|
153
|
+
*
|
|
154
|
+
* @generated from message arrow.flight.protocol.Result
|
|
155
|
+
*/
|
|
156
|
+
export type Result = Message<"arrow.flight.protocol.Result"> & {
|
|
157
|
+
/**
|
|
158
|
+
* @generated from field: bytes body = 1;
|
|
159
|
+
*/
|
|
160
|
+
body: Uint8Array;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Describes the message arrow.flight.protocol.Result.
|
|
164
|
+
* Use `create(ResultSchema)` to create a new message.
|
|
165
|
+
*/
|
|
166
|
+
export declare const ResultSchema: GenMessage<Result>;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* Wrap the result of a getSchema call
|
|
170
|
+
*
|
|
171
|
+
* @generated from message arrow.flight.protocol.SchemaResult
|
|
172
|
+
*/
|
|
173
|
+
export type SchemaResult = Message<"arrow.flight.protocol.SchemaResult"> & {
|
|
174
|
+
/**
|
|
175
|
+
* The schema of the dataset in its IPC form:
|
|
176
|
+
* 4 bytes - an optional IPC_CONTINUATION_TOKEN prefix
|
|
177
|
+
* 4 bytes - the byte length of the payload
|
|
178
|
+
* a flatbuffer Message whose header is the Schema
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: bytes schema = 1;
|
|
181
|
+
*/
|
|
182
|
+
schema: Uint8Array;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Describes the message arrow.flight.protocol.SchemaResult.
|
|
186
|
+
* Use `create(SchemaResultSchema)` to create a new message.
|
|
187
|
+
*/
|
|
188
|
+
export declare const SchemaResultSchema: GenMessage<SchemaResult>;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* The name or tag for a Flight. May be used as a way to retrieve or generate
|
|
192
|
+
* a flight or be used to expose a set of previously defined flights.
|
|
193
|
+
*
|
|
194
|
+
* @generated from message arrow.flight.protocol.FlightDescriptor
|
|
195
|
+
*/
|
|
196
|
+
export type FlightDescriptor = Message<"arrow.flight.protocol.FlightDescriptor"> & {
|
|
197
|
+
/**
|
|
198
|
+
* @generated from field: arrow.flight.protocol.FlightDescriptor.DescriptorType type = 1;
|
|
199
|
+
*/
|
|
200
|
+
type: FlightDescriptor_DescriptorType;
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* Opaque value used to express a command. Should only be defined when
|
|
204
|
+
* type = CMD.
|
|
205
|
+
*
|
|
206
|
+
* @generated from field: bytes cmd = 2;
|
|
207
|
+
*/
|
|
208
|
+
cmd: Uint8Array;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* List of strings identifying a particular dataset. Should only be defined
|
|
212
|
+
* when type = PATH.
|
|
213
|
+
*
|
|
214
|
+
* @generated from field: repeated string path = 3;
|
|
215
|
+
*/
|
|
216
|
+
path: string[];
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Describes the message arrow.flight.protocol.FlightDescriptor.
|
|
220
|
+
* Use `create(FlightDescriptorSchema)` to create a new message.
|
|
221
|
+
*/
|
|
222
|
+
export declare const FlightDescriptorSchema: GenMessage<FlightDescriptor>;
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* Describes what type of descriptor is defined.
|
|
226
|
+
*
|
|
227
|
+
* @generated from enum arrow.flight.protocol.FlightDescriptor.DescriptorType
|
|
228
|
+
*/
|
|
229
|
+
export declare enum FlightDescriptor_DescriptorType {
|
|
230
|
+
/**
|
|
231
|
+
* Protobuf pattern, not used.
|
|
232
|
+
*
|
|
233
|
+
* @generated from enum value: UNKNOWN = 0;
|
|
234
|
+
*/
|
|
235
|
+
UNKNOWN = 0,
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* A named path that identifies a dataset. A path is composed of a string
|
|
239
|
+
* or list of strings describing a particular dataset. This is conceptually
|
|
240
|
+
* similar to a path inside a filesystem.
|
|
241
|
+
*
|
|
242
|
+
* @generated from enum value: PATH = 1;
|
|
243
|
+
*/
|
|
244
|
+
PATH = 1,
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* An opaque command to generate a dataset.
|
|
248
|
+
*
|
|
249
|
+
* @generated from enum value: CMD = 2;
|
|
250
|
+
*/
|
|
251
|
+
CMD = 2
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Describes the enum arrow.flight.protocol.FlightDescriptor.DescriptorType.
|
|
255
|
+
*/
|
|
256
|
+
export declare const FlightDescriptor_DescriptorTypeSchema: GenEnum<FlightDescriptor_DescriptorType>;
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* The access coordinates for retrieval of a dataset. With a FlightInfo, a
|
|
260
|
+
* consumer is able to determine how to retrieve a dataset.
|
|
261
|
+
*
|
|
262
|
+
* @generated from message arrow.flight.protocol.FlightInfo
|
|
263
|
+
*/
|
|
264
|
+
export type FlightInfo = Message<"arrow.flight.protocol.FlightInfo"> & {
|
|
265
|
+
/**
|
|
266
|
+
* The schema of the dataset in its IPC form:
|
|
267
|
+
* 4 bytes - an optional IPC_CONTINUATION_TOKEN prefix
|
|
268
|
+
* 4 bytes - the byte length of the payload
|
|
269
|
+
* a flatbuffer Message whose header is the Schema
|
|
270
|
+
*
|
|
271
|
+
* @generated from field: bytes schema = 1;
|
|
272
|
+
*/
|
|
273
|
+
schema: Uint8Array;
|
|
274
|
+
/**
|
|
275
|
+
*
|
|
276
|
+
* The descriptor associated with this info.
|
|
277
|
+
*
|
|
278
|
+
* @generated from field: arrow.flight.protocol.FlightDescriptor flight_descriptor = 2;
|
|
279
|
+
*/
|
|
280
|
+
flightDescriptor?: FlightDescriptor;
|
|
281
|
+
/**
|
|
282
|
+
*
|
|
283
|
+
* A list of endpoints associated with the flight. To consume the
|
|
284
|
+
* whole flight, all endpoints (and hence all Tickets) must be
|
|
285
|
+
* consumed. Endpoints can be consumed in any order.
|
|
286
|
+
*
|
|
287
|
+
* In other words, an application can use multiple endpoints to
|
|
288
|
+
* represent partitioned data.
|
|
289
|
+
*
|
|
290
|
+
* If the returned data has an ordering, an application can use
|
|
291
|
+
* "FlightInfo.ordered = true" or should return all data in a
|
|
292
|
+
* single endpoint. Otherwise, there is no ordering defined on
|
|
293
|
+
* endpoints or the data within.
|
|
294
|
+
*
|
|
295
|
+
* A client can read ordered data by reading data from returned
|
|
296
|
+
* endpoints, in order, from front to back.
|
|
297
|
+
*
|
|
298
|
+
* Note that a client may ignore "FlightInfo.ordered = true". If an
|
|
299
|
+
* ordering is important for an application, an application must
|
|
300
|
+
* choose one of them:
|
|
301
|
+
*
|
|
302
|
+
* * An application requires that all clients must read data in
|
|
303
|
+
* returned endpoints order.
|
|
304
|
+
* * An application must return all data in a single endpoint.
|
|
305
|
+
*
|
|
306
|
+
* @generated from field: repeated arrow.flight.protocol.FlightEndpoint endpoint = 3;
|
|
307
|
+
*/
|
|
308
|
+
endpoint: FlightEndpoint[];
|
|
309
|
+
/**
|
|
310
|
+
* Set these to -1 if unknown.
|
|
311
|
+
*
|
|
312
|
+
* @generated from field: int64 total_records = 4;
|
|
313
|
+
*/
|
|
314
|
+
totalRecords: bigint;
|
|
315
|
+
/**
|
|
316
|
+
* @generated from field: int64 total_bytes = 5;
|
|
317
|
+
*/
|
|
318
|
+
totalBytes: bigint;
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* FlightEndpoints are in the same order as the data.
|
|
322
|
+
*
|
|
323
|
+
* @generated from field: bool ordered = 6;
|
|
324
|
+
*/
|
|
325
|
+
ordered: boolean;
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* Application-defined metadata.
|
|
329
|
+
*
|
|
330
|
+
* There is no inherent or required relationship between this
|
|
331
|
+
* and the app_metadata fields in the FlightEndpoints or resulting
|
|
332
|
+
* FlightData messages. Since this metadata is application-defined,
|
|
333
|
+
* a given application could define there to be a relationship,
|
|
334
|
+
* but there is none required by the spec.
|
|
335
|
+
*
|
|
336
|
+
* @generated from field: bytes app_metadata = 7;
|
|
337
|
+
*/
|
|
338
|
+
appMetadata: Uint8Array;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* Describes the message arrow.flight.protocol.FlightInfo.
|
|
342
|
+
* Use `create(FlightInfoSchema)` to create a new message.
|
|
343
|
+
*/
|
|
344
|
+
export declare const FlightInfoSchema: GenMessage<FlightInfo>;
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
* The information to process a long-running query.
|
|
348
|
+
*
|
|
349
|
+
* @generated from message arrow.flight.protocol.PollInfo
|
|
350
|
+
*/
|
|
351
|
+
export type PollInfo = Message<"arrow.flight.protocol.PollInfo"> & {
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* The currently available results.
|
|
355
|
+
*
|
|
356
|
+
* If "flight_descriptor" is not specified, the query is complete
|
|
357
|
+
* and "info" specifies all results. Otherwise, "info" contains
|
|
358
|
+
* partial query results.
|
|
359
|
+
*
|
|
360
|
+
* Note that each PollInfo response contains a complete
|
|
361
|
+
* FlightInfo (not just the delta between the previous and current
|
|
362
|
+
* FlightInfo).
|
|
363
|
+
*
|
|
364
|
+
* Subsequent PollInfo responses may only append new endpoints to
|
|
365
|
+
* info.
|
|
366
|
+
*
|
|
367
|
+
* Clients can begin fetching results via DoGet(Ticket) with the
|
|
368
|
+
* ticket in the info before the query is
|
|
369
|
+
* completed. FlightInfo.ordered is also valid.
|
|
370
|
+
*
|
|
371
|
+
* @generated from field: arrow.flight.protocol.FlightInfo info = 1;
|
|
372
|
+
*/
|
|
373
|
+
info?: FlightInfo;
|
|
374
|
+
/**
|
|
375
|
+
*
|
|
376
|
+
* The descriptor the client should use on the next try.
|
|
377
|
+
* If unset, the query is complete.
|
|
378
|
+
*
|
|
379
|
+
* @generated from field: arrow.flight.protocol.FlightDescriptor flight_descriptor = 2;
|
|
380
|
+
*/
|
|
381
|
+
flightDescriptor?: FlightDescriptor;
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* Query progress. If known, must be in [0.0, 1.0] but need not be
|
|
385
|
+
* monotonic or nondecreasing. If unknown, do not set.
|
|
386
|
+
*
|
|
387
|
+
* @generated from field: optional double progress = 3;
|
|
388
|
+
*/
|
|
389
|
+
progress?: number;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* Expiration time for this request. After this passes, the server
|
|
393
|
+
* might not accept the retry descriptor anymore (and the query may
|
|
394
|
+
* be cancelled). This may be updated on a call to PollFlightInfo.
|
|
395
|
+
*
|
|
396
|
+
* @generated from field: google.protobuf.Timestamp expiration_time = 4;
|
|
397
|
+
*/
|
|
398
|
+
expirationTime?: Timestamp;
|
|
399
|
+
};
|
|
400
|
+
/**
|
|
401
|
+
* Describes the message arrow.flight.protocol.PollInfo.
|
|
402
|
+
* Use `create(PollInfoSchema)` to create a new message.
|
|
403
|
+
*/
|
|
404
|
+
export declare const PollInfoSchema: GenMessage<PollInfo>;
|
|
405
|
+
/**
|
|
406
|
+
*
|
|
407
|
+
* The request of the CancelFlightInfo action.
|
|
408
|
+
*
|
|
409
|
+
* The request should be stored in Action.body.
|
|
410
|
+
*
|
|
411
|
+
* @generated from message arrow.flight.protocol.CancelFlightInfoRequest
|
|
412
|
+
*/
|
|
413
|
+
export type CancelFlightInfoRequest = Message<"arrow.flight.protocol.CancelFlightInfoRequest"> & {
|
|
414
|
+
/**
|
|
415
|
+
* @generated from field: arrow.flight.protocol.FlightInfo info = 1;
|
|
416
|
+
*/
|
|
417
|
+
info?: FlightInfo;
|
|
418
|
+
};
|
|
419
|
+
/**
|
|
420
|
+
* Describes the message arrow.flight.protocol.CancelFlightInfoRequest.
|
|
421
|
+
* Use `create(CancelFlightInfoRequestSchema)` to create a new message.
|
|
422
|
+
*/
|
|
423
|
+
export declare const CancelFlightInfoRequestSchema: GenMessage<CancelFlightInfoRequest>;
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* The result of the CancelFlightInfo action.
|
|
427
|
+
*
|
|
428
|
+
* The result should be stored in Result.body.
|
|
429
|
+
*
|
|
430
|
+
* @generated from message arrow.flight.protocol.CancelFlightInfoResult
|
|
431
|
+
*/
|
|
432
|
+
export type CancelFlightInfoResult = Message<"arrow.flight.protocol.CancelFlightInfoResult"> & {
|
|
433
|
+
/**
|
|
434
|
+
* @generated from field: arrow.flight.protocol.CancelStatus status = 1;
|
|
435
|
+
*/
|
|
436
|
+
status: CancelStatus;
|
|
437
|
+
};
|
|
438
|
+
/**
|
|
439
|
+
* Describes the message arrow.flight.protocol.CancelFlightInfoResult.
|
|
440
|
+
* Use `create(CancelFlightInfoResultSchema)` to create a new message.
|
|
441
|
+
*/
|
|
442
|
+
export declare const CancelFlightInfoResultSchema: GenMessage<CancelFlightInfoResult>;
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* An opaque identifier that the service can use to retrieve a particular
|
|
446
|
+
* portion of a stream.
|
|
447
|
+
*
|
|
448
|
+
* Tickets are meant to be single use. It is an error/application-defined
|
|
449
|
+
* behavior to reuse a ticket.
|
|
450
|
+
*
|
|
451
|
+
* @generated from message arrow.flight.protocol.Ticket
|
|
452
|
+
*/
|
|
453
|
+
export type Ticket = Message<"arrow.flight.protocol.Ticket"> & {
|
|
454
|
+
/**
|
|
455
|
+
* @generated from field: bytes ticket = 1;
|
|
456
|
+
*/
|
|
457
|
+
ticket: Uint8Array;
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Describes the message arrow.flight.protocol.Ticket.
|
|
461
|
+
* Use `create(TicketSchema)` to create a new message.
|
|
462
|
+
*/
|
|
463
|
+
export declare const TicketSchema: GenMessage<Ticket>;
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* A location to retrieve a particular stream from. This URI should be one of
|
|
467
|
+
* the following:
|
|
468
|
+
* - An empty string or the string 'arrow-flight-reuse-connection://?':
|
|
469
|
+
* indicating that the ticket can be redeemed on the service where the
|
|
470
|
+
* ticket was generated via a DoGet request.
|
|
471
|
+
* - A valid grpc URI (grpc://, grpc+tls://, grpc+unix://, etc.):
|
|
472
|
+
* indicating that the ticket can be redeemed on the service at the given
|
|
473
|
+
* URI via a DoGet request.
|
|
474
|
+
* - A valid HTTP URI (http://, https://, etc.):
|
|
475
|
+
* indicating that the client should perform a GET request against the
|
|
476
|
+
* given URI to retrieve the stream. The ticket should be empty
|
|
477
|
+
* in this case and should be ignored by the client. Cloud object storage
|
|
478
|
+
* can be utilized by presigned URLs or mediating the auth separately and
|
|
479
|
+
* returning the full URL (e.g. https://amzn-s3-demo-bucket.s3.us-west-2.amazonaws.com/...).
|
|
480
|
+
*
|
|
481
|
+
* We allow non-Flight URIs for the purpose of allowing Flight services to indicate that
|
|
482
|
+
* results can be downloaded in formats other than Arrow (such as Parquet) or to allow
|
|
483
|
+
* direct fetching of results from a URI to reduce excess copying and data movement.
|
|
484
|
+
* In these cases, the following conventions should be followed by servers and clients:
|
|
485
|
+
*
|
|
486
|
+
* - Unless otherwise specified by the 'Content-Type' header of the response,
|
|
487
|
+
* a client should assume the response is using the Arrow IPC Streaming format.
|
|
488
|
+
* Usage of an IANA media type like 'application/octet-stream' should be assumed to
|
|
489
|
+
* be using the Arrow IPC Streaming format.
|
|
490
|
+
* - The server may allow the client to choose a specific response format by
|
|
491
|
+
* specifying an 'Accept' header in the request, such as 'application/vnd.apache.parquet'
|
|
492
|
+
* or 'application/vnd.apache.arrow.stream'. If multiple types are requested and
|
|
493
|
+
* supported by the server, the choice of which to use is server-specific. If
|
|
494
|
+
* none of the requested content-types are supported, the server may respond with
|
|
495
|
+
* either 406 (Not Acceptable) or 415 (Unsupported Media Type), or successfully
|
|
496
|
+
* respond with a different format that it does support along with the correct
|
|
497
|
+
* 'Content-Type' header.
|
|
498
|
+
*
|
|
499
|
+
* Note: new schemes may be proposed in the future to allow for more flexibility based
|
|
500
|
+
* on community requests.
|
|
501
|
+
*
|
|
502
|
+
* @generated from message arrow.flight.protocol.Location
|
|
503
|
+
*/
|
|
504
|
+
export type Location = Message<"arrow.flight.protocol.Location"> & {
|
|
505
|
+
/**
|
|
506
|
+
* @generated from field: string uri = 1;
|
|
507
|
+
*/
|
|
508
|
+
uri: string;
|
|
509
|
+
};
|
|
510
|
+
/**
|
|
511
|
+
* Describes the message arrow.flight.protocol.Location.
|
|
512
|
+
* Use `create(LocationSchema)` to create a new message.
|
|
513
|
+
*/
|
|
514
|
+
export declare const LocationSchema: GenMessage<Location>;
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* A particular stream or split associated with a flight.
|
|
518
|
+
*
|
|
519
|
+
* @generated from message arrow.flight.protocol.FlightEndpoint
|
|
520
|
+
*/
|
|
521
|
+
export type FlightEndpoint = Message<"arrow.flight.protocol.FlightEndpoint"> & {
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* Token used to retrieve this stream.
|
|
525
|
+
*
|
|
526
|
+
* @generated from field: arrow.flight.protocol.Ticket ticket = 1;
|
|
527
|
+
*/
|
|
528
|
+
ticket?: Ticket;
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* A list of URIs where this ticket can be redeemed via DoGet().
|
|
532
|
+
*
|
|
533
|
+
* If the list is empty, the expectation is that the ticket can only
|
|
534
|
+
* be redeemed on the current service where the ticket was
|
|
535
|
+
* generated.
|
|
536
|
+
*
|
|
537
|
+
* If the list is not empty, the expectation is that the ticket can be
|
|
538
|
+
* redeemed at any of the locations, and that the data returned will be
|
|
539
|
+
* equivalent. In this case, the ticket may only be redeemed at one of the
|
|
540
|
+
* given locations, and not (necessarily) on the current service. If one
|
|
541
|
+
* of the given locations is "arrow-flight-reuse-connection://?", the
|
|
542
|
+
* client may redeem the ticket on the service where the ticket was
|
|
543
|
+
* generated (i.e., the same as above), in addition to the other
|
|
544
|
+
* locations. (This URI was chosen to maximize compatibility, as 'scheme:'
|
|
545
|
+
* or 'scheme://' are not accepted by Java's java.net.URI.)
|
|
546
|
+
*
|
|
547
|
+
* In other words, an application can use multiple locations to
|
|
548
|
+
* represent redundant and/or load balanced services.
|
|
549
|
+
*
|
|
550
|
+
* @generated from field: repeated arrow.flight.protocol.Location location = 2;
|
|
551
|
+
*/
|
|
552
|
+
location: Location[];
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* Expiration time of this stream. If present, clients may assume
|
|
556
|
+
* they can retry DoGet requests. Otherwise, it is
|
|
557
|
+
* application-defined whether DoGet requests may be retried.
|
|
558
|
+
*
|
|
559
|
+
* @generated from field: google.protobuf.Timestamp expiration_time = 3;
|
|
560
|
+
*/
|
|
561
|
+
expirationTime?: Timestamp;
|
|
562
|
+
/**
|
|
563
|
+
*
|
|
564
|
+
* Application-defined metadata.
|
|
565
|
+
*
|
|
566
|
+
* There is no inherent or required relationship between this
|
|
567
|
+
* and the app_metadata fields in the FlightInfo or resulting
|
|
568
|
+
* FlightData messages. Since this metadata is application-defined,
|
|
569
|
+
* a given application could define there to be a relationship,
|
|
570
|
+
* but there is none required by the spec.
|
|
571
|
+
*
|
|
572
|
+
* @generated from field: bytes app_metadata = 4;
|
|
573
|
+
*/
|
|
574
|
+
appMetadata: Uint8Array;
|
|
575
|
+
};
|
|
576
|
+
/**
|
|
577
|
+
* Describes the message arrow.flight.protocol.FlightEndpoint.
|
|
578
|
+
* Use `create(FlightEndpointSchema)` to create a new message.
|
|
579
|
+
*/
|
|
580
|
+
export declare const FlightEndpointSchema: GenMessage<FlightEndpoint>;
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* The request of the RenewFlightEndpoint action.
|
|
584
|
+
*
|
|
585
|
+
* The request should be stored in Action.body.
|
|
586
|
+
*
|
|
587
|
+
* @generated from message arrow.flight.protocol.RenewFlightEndpointRequest
|
|
588
|
+
*/
|
|
589
|
+
export type RenewFlightEndpointRequest = Message<"arrow.flight.protocol.RenewFlightEndpointRequest"> & {
|
|
590
|
+
/**
|
|
591
|
+
* @generated from field: arrow.flight.protocol.FlightEndpoint endpoint = 1;
|
|
592
|
+
*/
|
|
593
|
+
endpoint?: FlightEndpoint;
|
|
594
|
+
};
|
|
595
|
+
/**
|
|
596
|
+
* Describes the message arrow.flight.protocol.RenewFlightEndpointRequest.
|
|
597
|
+
* Use `create(RenewFlightEndpointRequestSchema)` to create a new message.
|
|
598
|
+
*/
|
|
599
|
+
export declare const RenewFlightEndpointRequestSchema: GenMessage<RenewFlightEndpointRequest>;
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* A batch of Arrow data as part of a stream of batches.
|
|
603
|
+
*
|
|
604
|
+
* @generated from message arrow.flight.protocol.FlightData
|
|
605
|
+
*/
|
|
606
|
+
export type FlightData = Message<"arrow.flight.protocol.FlightData"> & {
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* The descriptor of the data. This is only relevant when a client is
|
|
610
|
+
* starting a new DoPut stream.
|
|
611
|
+
*
|
|
612
|
+
* @generated from field: arrow.flight.protocol.FlightDescriptor flight_descriptor = 1;
|
|
613
|
+
*/
|
|
614
|
+
flightDescriptor?: FlightDescriptor;
|
|
615
|
+
/**
|
|
616
|
+
*
|
|
617
|
+
* Header for message data as described in Message.fbs::Message.
|
|
618
|
+
*
|
|
619
|
+
* @generated from field: bytes data_header = 2;
|
|
620
|
+
*/
|
|
621
|
+
dataHeader: Uint8Array;
|
|
622
|
+
/**
|
|
623
|
+
*
|
|
624
|
+
* Application-defined metadata.
|
|
625
|
+
*
|
|
626
|
+
* @generated from field: bytes app_metadata = 3;
|
|
627
|
+
*/
|
|
628
|
+
appMetadata: Uint8Array;
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* The actual batch of Arrow data. Preferably handled with minimal-copies
|
|
632
|
+
* coming last in the definition to help with sidecar patterns (it is
|
|
633
|
+
* expected that some implementations will fetch this field off the wire
|
|
634
|
+
* with specialized code to avoid extra memory copies).
|
|
635
|
+
*
|
|
636
|
+
* @generated from field: bytes data_body = 1000;
|
|
637
|
+
*/
|
|
638
|
+
dataBody: Uint8Array;
|
|
639
|
+
};
|
|
640
|
+
/**
|
|
641
|
+
* Describes the message arrow.flight.protocol.FlightData.
|
|
642
|
+
* Use `create(FlightDataSchema)` to create a new message.
|
|
643
|
+
*/
|
|
644
|
+
export declare const FlightDataSchema: GenMessage<FlightData>;
|
|
645
|
+
/**
|
|
646
|
+
* *
|
|
647
|
+
* The response message associated with the submission of a DoPut.
|
|
648
|
+
*
|
|
649
|
+
* @generated from message arrow.flight.protocol.PutResult
|
|
650
|
+
*/
|
|
651
|
+
export type PutResult = Message<"arrow.flight.protocol.PutResult"> & {
|
|
652
|
+
/**
|
|
653
|
+
* @generated from field: bytes app_metadata = 1;
|
|
654
|
+
*/
|
|
655
|
+
appMetadata: Uint8Array;
|
|
656
|
+
};
|
|
657
|
+
/**
|
|
658
|
+
* Describes the message arrow.flight.protocol.PutResult.
|
|
659
|
+
* Use `create(PutResultSchema)` to create a new message.
|
|
660
|
+
*/
|
|
661
|
+
export declare const PutResultSchema: GenMessage<PutResult>;
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* EXPERIMENTAL: Union of possible value types for a Session Option to be set to.
|
|
665
|
+
*
|
|
666
|
+
* By convention, an attempt to set a valueless SessionOptionValue should
|
|
667
|
+
* attempt to unset or clear the named option value on the server.
|
|
668
|
+
*
|
|
669
|
+
* @generated from message arrow.flight.protocol.SessionOptionValue
|
|
670
|
+
*/
|
|
671
|
+
export type SessionOptionValue = Message<"arrow.flight.protocol.SessionOptionValue"> & {
|
|
672
|
+
/**
|
|
673
|
+
* @generated from oneof arrow.flight.protocol.SessionOptionValue.option_value
|
|
674
|
+
*/
|
|
675
|
+
optionValue: {
|
|
676
|
+
/**
|
|
677
|
+
* @generated from field: string string_value = 1;
|
|
678
|
+
*/
|
|
679
|
+
value: string;
|
|
680
|
+
case: "stringValue";
|
|
681
|
+
} | {
|
|
682
|
+
/**
|
|
683
|
+
* @generated from field: bool bool_value = 2;
|
|
684
|
+
*/
|
|
685
|
+
value: boolean;
|
|
686
|
+
case: "boolValue";
|
|
687
|
+
} | {
|
|
688
|
+
/**
|
|
689
|
+
* @generated from field: sfixed64 int64_value = 3;
|
|
690
|
+
*/
|
|
691
|
+
value: bigint;
|
|
692
|
+
case: "int64Value";
|
|
693
|
+
} | {
|
|
694
|
+
/**
|
|
695
|
+
* @generated from field: double double_value = 4;
|
|
696
|
+
*/
|
|
697
|
+
value: number;
|
|
698
|
+
case: "doubleValue";
|
|
699
|
+
} | {
|
|
700
|
+
/**
|
|
701
|
+
* @generated from field: arrow.flight.protocol.SessionOptionValue.StringListValue string_list_value = 5;
|
|
702
|
+
*/
|
|
703
|
+
value: SessionOptionValue_StringListValue;
|
|
704
|
+
case: "stringListValue";
|
|
705
|
+
} | {
|
|
706
|
+
case: undefined;
|
|
707
|
+
value?: undefined;
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
/**
|
|
711
|
+
* Describes the message arrow.flight.protocol.SessionOptionValue.
|
|
712
|
+
* Use `create(SessionOptionValueSchema)` to create a new message.
|
|
713
|
+
*/
|
|
714
|
+
export declare const SessionOptionValueSchema: GenMessage<SessionOptionValue>;
|
|
715
|
+
/**
|
|
716
|
+
* @generated from message arrow.flight.protocol.SessionOptionValue.StringListValue
|
|
717
|
+
*/
|
|
718
|
+
export type SessionOptionValue_StringListValue = Message<"arrow.flight.protocol.SessionOptionValue.StringListValue"> & {
|
|
719
|
+
/**
|
|
720
|
+
* @generated from field: repeated string values = 1;
|
|
721
|
+
*/
|
|
722
|
+
values: string[];
|
|
723
|
+
};
|
|
724
|
+
/**
|
|
725
|
+
* Describes the message arrow.flight.protocol.SessionOptionValue.StringListValue.
|
|
726
|
+
* Use `create(SessionOptionValue_StringListValueSchema)` to create a new message.
|
|
727
|
+
*/
|
|
728
|
+
export declare const SessionOptionValue_StringListValueSchema: GenMessage<SessionOptionValue_StringListValue>;
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* EXPERIMENTAL: A request to set session options for an existing or new (implicit)
|
|
732
|
+
* server session.
|
|
733
|
+
*
|
|
734
|
+
* Sessions are persisted and referenced via a transport-level state management, typically
|
|
735
|
+
* RFC 6265 HTTP cookies when using an HTTP transport. The suggested cookie name or state
|
|
736
|
+
* context key is 'arrow_flight_session_id', although implementations may freely choose their
|
|
737
|
+
* own name.
|
|
738
|
+
*
|
|
739
|
+
* Session creation (if one does not already exist) is implied by this RPC request, however
|
|
740
|
+
* server implementations may choose to initiate a session that also contains client-provided
|
|
741
|
+
* session options at any other time, e.g. on authentication, or when any other call is made
|
|
742
|
+
* and the server wishes to use a session to persist any state (or lack thereof).
|
|
743
|
+
*
|
|
744
|
+
* @generated from message arrow.flight.protocol.SetSessionOptionsRequest
|
|
745
|
+
*/
|
|
746
|
+
export type SetSessionOptionsRequest = Message<"arrow.flight.protocol.SetSessionOptionsRequest"> & {
|
|
747
|
+
/**
|
|
748
|
+
* @generated from field: map<string, arrow.flight.protocol.SessionOptionValue> session_options = 1;
|
|
749
|
+
*/
|
|
750
|
+
sessionOptions: {
|
|
751
|
+
[key: string]: SessionOptionValue;
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
/**
|
|
755
|
+
* Describes the message arrow.flight.protocol.SetSessionOptionsRequest.
|
|
756
|
+
* Use `create(SetSessionOptionsRequestSchema)` to create a new message.
|
|
757
|
+
*/
|
|
758
|
+
export declare const SetSessionOptionsRequestSchema: GenMessage<SetSessionOptionsRequest>;
|
|
759
|
+
/**
|
|
760
|
+
*
|
|
761
|
+
* EXPERIMENTAL: The results (individually) of setting a set of session options.
|
|
762
|
+
*
|
|
763
|
+
* Option names should only be present in the response if they were not successfully
|
|
764
|
+
* set on the server; that is, a response without an Error for a name provided in the
|
|
765
|
+
* SetSessionOptionsRequest implies that the named option value was set successfully.
|
|
766
|
+
*
|
|
767
|
+
* @generated from message arrow.flight.protocol.SetSessionOptionsResult
|
|
768
|
+
*/
|
|
769
|
+
export type SetSessionOptionsResult = Message<"arrow.flight.protocol.SetSessionOptionsResult"> & {
|
|
770
|
+
/**
|
|
771
|
+
* @generated from field: map<string, arrow.flight.protocol.SetSessionOptionsResult.Error> errors = 1;
|
|
772
|
+
*/
|
|
773
|
+
errors: {
|
|
774
|
+
[key: string]: SetSessionOptionsResult_Error;
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
/**
|
|
778
|
+
* Describes the message arrow.flight.protocol.SetSessionOptionsResult.
|
|
779
|
+
* Use `create(SetSessionOptionsResultSchema)` to create a new message.
|
|
780
|
+
*/
|
|
781
|
+
export declare const SetSessionOptionsResultSchema: GenMessage<SetSessionOptionsResult>;
|
|
782
|
+
/**
|
|
783
|
+
* @generated from message arrow.flight.protocol.SetSessionOptionsResult.Error
|
|
784
|
+
*/
|
|
785
|
+
export type SetSessionOptionsResult_Error = Message<"arrow.flight.protocol.SetSessionOptionsResult.Error"> & {
|
|
786
|
+
/**
|
|
787
|
+
* @generated from field: arrow.flight.protocol.SetSessionOptionsResult.ErrorValue value = 1;
|
|
788
|
+
*/
|
|
789
|
+
value: SetSessionOptionsResult_ErrorValue;
|
|
790
|
+
};
|
|
791
|
+
/**
|
|
792
|
+
* Describes the message arrow.flight.protocol.SetSessionOptionsResult.Error.
|
|
793
|
+
* Use `create(SetSessionOptionsResult_ErrorSchema)` to create a new message.
|
|
794
|
+
*/
|
|
795
|
+
export declare const SetSessionOptionsResult_ErrorSchema: GenMessage<SetSessionOptionsResult_Error>;
|
|
796
|
+
/**
|
|
797
|
+
* @generated from enum arrow.flight.protocol.SetSessionOptionsResult.ErrorValue
|
|
798
|
+
*/
|
|
799
|
+
export declare enum SetSessionOptionsResult_ErrorValue {
|
|
800
|
+
/**
|
|
801
|
+
* Protobuf deserialization fallback value: The status is unknown or unrecognized.
|
|
802
|
+
* Servers should avoid using this value. The request may be retried by the client.
|
|
803
|
+
*
|
|
804
|
+
* @generated from enum value: UNSPECIFIED = 0;
|
|
805
|
+
*/
|
|
806
|
+
UNSPECIFIED = 0,
|
|
807
|
+
/**
|
|
808
|
+
* The given session option name is invalid.
|
|
809
|
+
*
|
|
810
|
+
* @generated from enum value: INVALID_NAME = 1;
|
|
811
|
+
*/
|
|
812
|
+
INVALID_NAME = 1,
|
|
813
|
+
/**
|
|
814
|
+
* The session option value or type is invalid.
|
|
815
|
+
*
|
|
816
|
+
* @generated from enum value: INVALID_VALUE = 2;
|
|
817
|
+
*/
|
|
818
|
+
INVALID_VALUE = 2,
|
|
819
|
+
/**
|
|
820
|
+
* The session option cannot be set.
|
|
821
|
+
*
|
|
822
|
+
* @generated from enum value: ERROR = 3;
|
|
823
|
+
*/
|
|
824
|
+
ERROR = 3
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Describes the enum arrow.flight.protocol.SetSessionOptionsResult.ErrorValue.
|
|
828
|
+
*/
|
|
829
|
+
export declare const SetSessionOptionsResult_ErrorValueSchema: GenEnum<SetSessionOptionsResult_ErrorValue>;
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* EXPERIMENTAL: A request to access the session options for the current server session.
|
|
833
|
+
*
|
|
834
|
+
* The existing session is referenced via a cookie header or similar (see
|
|
835
|
+
* SetSessionOptionsRequest above); it is an error to make this request with a missing,
|
|
836
|
+
* invalid, or expired session cookie header or other implementation-defined session
|
|
837
|
+
* reference token.
|
|
838
|
+
*
|
|
839
|
+
* @generated from message arrow.flight.protocol.GetSessionOptionsRequest
|
|
840
|
+
*/
|
|
841
|
+
export type GetSessionOptionsRequest = Message<"arrow.flight.protocol.GetSessionOptionsRequest"> & {};
|
|
842
|
+
/**
|
|
843
|
+
* Describes the message arrow.flight.protocol.GetSessionOptionsRequest.
|
|
844
|
+
* Use `create(GetSessionOptionsRequestSchema)` to create a new message.
|
|
845
|
+
*/
|
|
846
|
+
export declare const GetSessionOptionsRequestSchema: GenMessage<GetSessionOptionsRequest>;
|
|
847
|
+
/**
|
|
848
|
+
*
|
|
849
|
+
* EXPERIMENTAL: The result containing the current server session options.
|
|
850
|
+
*
|
|
851
|
+
* @generated from message arrow.flight.protocol.GetSessionOptionsResult
|
|
852
|
+
*/
|
|
853
|
+
export type GetSessionOptionsResult = Message<"arrow.flight.protocol.GetSessionOptionsResult"> & {
|
|
854
|
+
/**
|
|
855
|
+
* @generated from field: map<string, arrow.flight.protocol.SessionOptionValue> session_options = 1;
|
|
856
|
+
*/
|
|
857
|
+
sessionOptions: {
|
|
858
|
+
[key: string]: SessionOptionValue;
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
/**
|
|
862
|
+
* Describes the message arrow.flight.protocol.GetSessionOptionsResult.
|
|
863
|
+
* Use `create(GetSessionOptionsResultSchema)` to create a new message.
|
|
864
|
+
*/
|
|
865
|
+
export declare const GetSessionOptionsResultSchema: GenMessage<GetSessionOptionsResult>;
|
|
866
|
+
/**
|
|
867
|
+
*
|
|
868
|
+
* Request message for the "Close Session" action.
|
|
869
|
+
*
|
|
870
|
+
* The existing session is referenced via a cookie header.
|
|
871
|
+
*
|
|
872
|
+
* @generated from message arrow.flight.protocol.CloseSessionRequest
|
|
873
|
+
*/
|
|
874
|
+
export type CloseSessionRequest = Message<"arrow.flight.protocol.CloseSessionRequest"> & {};
|
|
875
|
+
/**
|
|
876
|
+
* Describes the message arrow.flight.protocol.CloseSessionRequest.
|
|
877
|
+
* Use `create(CloseSessionRequestSchema)` to create a new message.
|
|
878
|
+
*/
|
|
879
|
+
export declare const CloseSessionRequestSchema: GenMessage<CloseSessionRequest>;
|
|
880
|
+
/**
|
|
881
|
+
*
|
|
882
|
+
* The result of closing a session.
|
|
883
|
+
*
|
|
884
|
+
* @generated from message arrow.flight.protocol.CloseSessionResult
|
|
885
|
+
*/
|
|
886
|
+
export type CloseSessionResult = Message<"arrow.flight.protocol.CloseSessionResult"> & {
|
|
887
|
+
/**
|
|
888
|
+
* @generated from field: arrow.flight.protocol.CloseSessionResult.Status status = 1;
|
|
889
|
+
*/
|
|
890
|
+
status: CloseSessionResult_Status;
|
|
891
|
+
};
|
|
892
|
+
/**
|
|
893
|
+
* Describes the message arrow.flight.protocol.CloseSessionResult.
|
|
894
|
+
* Use `create(CloseSessionResultSchema)` to create a new message.
|
|
895
|
+
*/
|
|
896
|
+
export declare const CloseSessionResultSchema: GenMessage<CloseSessionResult>;
|
|
897
|
+
/**
|
|
898
|
+
* @generated from enum arrow.flight.protocol.CloseSessionResult.Status
|
|
899
|
+
*/
|
|
900
|
+
export declare enum CloseSessionResult_Status {
|
|
901
|
+
/**
|
|
902
|
+
* Protobuf deserialization fallback value: The session close status is unknown or
|
|
903
|
+
* not recognized. Servers should avoid using this value (send a NOT_FOUND error if
|
|
904
|
+
* the requested session is not known or expired). Clients can retry the request.
|
|
905
|
+
*
|
|
906
|
+
* @generated from enum value: UNSPECIFIED = 0;
|
|
907
|
+
*/
|
|
908
|
+
UNSPECIFIED = 0,
|
|
909
|
+
/**
|
|
910
|
+
* The session close request is complete. Subsequent requests with
|
|
911
|
+
* the same session produce a NOT_FOUND error.
|
|
912
|
+
*
|
|
913
|
+
* @generated from enum value: CLOSED = 1;
|
|
914
|
+
*/
|
|
915
|
+
CLOSED = 1,
|
|
916
|
+
/**
|
|
917
|
+
* The session close request is in progress. The client may retry
|
|
918
|
+
* the close request.
|
|
919
|
+
*
|
|
920
|
+
* @generated from enum value: CLOSING = 2;
|
|
921
|
+
*/
|
|
922
|
+
CLOSING = 2,
|
|
923
|
+
/**
|
|
924
|
+
* The session is not closeable. The client should not retry the
|
|
925
|
+
* close request.
|
|
926
|
+
*
|
|
927
|
+
* @generated from enum value: NOT_CLOSEABLE = 3;
|
|
928
|
+
*/
|
|
929
|
+
NOT_CLOSEABLE = 3
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Describes the enum arrow.flight.protocol.CloseSessionResult.Status.
|
|
933
|
+
*/
|
|
934
|
+
export declare const CloseSessionResult_StatusSchema: GenEnum<CloseSessionResult_Status>;
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* The result of a cancel operation.
|
|
938
|
+
*
|
|
939
|
+
* This is used by CancelFlightInfoResult.status.
|
|
940
|
+
*
|
|
941
|
+
* @generated from enum arrow.flight.protocol.CancelStatus
|
|
942
|
+
*/
|
|
943
|
+
export declare enum CancelStatus {
|
|
944
|
+
/**
|
|
945
|
+
* The cancellation status is unknown. Servers should avoid using
|
|
946
|
+
* this value (send a NOT_FOUND error if the requested query is
|
|
947
|
+
* not known). Clients can retry the request.
|
|
948
|
+
*
|
|
949
|
+
* @generated from enum value: CANCEL_STATUS_UNSPECIFIED = 0;
|
|
950
|
+
*/
|
|
951
|
+
UNSPECIFIED = 0,
|
|
952
|
+
/**
|
|
953
|
+
* The cancellation request is complete. Subsequent requests with
|
|
954
|
+
* the same payload may return CANCELLED or a NOT_FOUND error.
|
|
955
|
+
*
|
|
956
|
+
* @generated from enum value: CANCEL_STATUS_CANCELLED = 1;
|
|
957
|
+
*/
|
|
958
|
+
CANCELLED = 1,
|
|
959
|
+
/**
|
|
960
|
+
* The cancellation request is in progress. The client may retry
|
|
961
|
+
* the cancellation request.
|
|
962
|
+
*
|
|
963
|
+
* @generated from enum value: CANCEL_STATUS_CANCELLING = 2;
|
|
964
|
+
*/
|
|
965
|
+
CANCELLING = 2,
|
|
966
|
+
/**
|
|
967
|
+
* The query is not cancellable. The client should not retry the
|
|
968
|
+
* cancellation request.
|
|
969
|
+
*
|
|
970
|
+
* @generated from enum value: CANCEL_STATUS_NOT_CANCELLABLE = 3;
|
|
971
|
+
*/
|
|
972
|
+
NOT_CANCELLABLE = 3
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* Describes the enum arrow.flight.protocol.CancelStatus.
|
|
976
|
+
*/
|
|
977
|
+
export declare const CancelStatusSchema: GenEnum<CancelStatus>;
|
|
978
|
+
/**
|
|
979
|
+
*
|
|
980
|
+
* A flight service is an endpoint for retrieving or storing Arrow data. A
|
|
981
|
+
* flight service can expose one or more predefined endpoints that can be
|
|
982
|
+
* accessed using the Arrow Flight Protocol. Additionally, a flight service
|
|
983
|
+
* can expose a set of actions that are available.
|
|
984
|
+
*
|
|
985
|
+
* @generated from service arrow.flight.protocol.FlightService
|
|
986
|
+
*/
|
|
987
|
+
export declare const FlightService: GenService<{
|
|
988
|
+
/**
|
|
989
|
+
*
|
|
990
|
+
* Handshake between client and server. Depending on the server, the
|
|
991
|
+
* handshake may be required to determine the token that should be used for
|
|
992
|
+
* future operations. Both request and response are streams to allow multiple
|
|
993
|
+
* round-trips depending on auth mechanism.
|
|
994
|
+
*
|
|
995
|
+
* @generated from rpc arrow.flight.protocol.FlightService.Handshake
|
|
996
|
+
*/
|
|
997
|
+
handshake: {
|
|
998
|
+
methodKind: "bidi_streaming";
|
|
999
|
+
input: typeof HandshakeRequestSchema;
|
|
1000
|
+
output: typeof HandshakeResponseSchema;
|
|
1001
|
+
};
|
|
1002
|
+
/**
|
|
1003
|
+
*
|
|
1004
|
+
* Get a list of available streams given a particular criteria. Most flight
|
|
1005
|
+
* services will expose one or more streams that are readily available for
|
|
1006
|
+
* retrieval. This api allows listing the streams available for
|
|
1007
|
+
* consumption. A user can also provide a criteria. The criteria can limit
|
|
1008
|
+
* the subset of streams that can be listed via this interface. Each flight
|
|
1009
|
+
* service allows its own definition of how to consume criteria.
|
|
1010
|
+
*
|
|
1011
|
+
* @generated from rpc arrow.flight.protocol.FlightService.ListFlights
|
|
1012
|
+
*/
|
|
1013
|
+
listFlights: {
|
|
1014
|
+
methodKind: "server_streaming";
|
|
1015
|
+
input: typeof CriteriaSchema;
|
|
1016
|
+
output: typeof FlightInfoSchema;
|
|
1017
|
+
};
|
|
1018
|
+
/**
|
|
1019
|
+
*
|
|
1020
|
+
* For a given FlightDescriptor, get information about how the flight can be
|
|
1021
|
+
* consumed. This is a useful interface if the consumer of the interface
|
|
1022
|
+
* already can identify the specific flight to consume. This interface can
|
|
1023
|
+
* also allow a consumer to generate a flight stream through a specified
|
|
1024
|
+
* descriptor. For example, a flight descriptor might be something that
|
|
1025
|
+
* includes a SQL statement or a Pickled Python operation that will be
|
|
1026
|
+
* executed. In those cases, the descriptor will not be previously available
|
|
1027
|
+
* within the list of available streams provided by ListFlights but will be
|
|
1028
|
+
* available for consumption for the duration defined by the specific flight
|
|
1029
|
+
* service.
|
|
1030
|
+
*
|
|
1031
|
+
* @generated from rpc arrow.flight.protocol.FlightService.GetFlightInfo
|
|
1032
|
+
*/
|
|
1033
|
+
getFlightInfo: {
|
|
1034
|
+
methodKind: "unary";
|
|
1035
|
+
input: typeof FlightDescriptorSchema;
|
|
1036
|
+
output: typeof FlightInfoSchema;
|
|
1037
|
+
};
|
|
1038
|
+
/**
|
|
1039
|
+
*
|
|
1040
|
+
* For a given FlightDescriptor, start a query and get information
|
|
1041
|
+
* to poll its execution status. This is a useful interface if the
|
|
1042
|
+
* query may be a long-running query. The first PollFlightInfo call
|
|
1043
|
+
* should return as quickly as possible. (GetFlightInfo doesn't
|
|
1044
|
+
* return until the query is complete.)
|
|
1045
|
+
*
|
|
1046
|
+
* A client can consume any available results before
|
|
1047
|
+
* the query is completed. See PollInfo.info for details.
|
|
1048
|
+
*
|
|
1049
|
+
* A client can poll the updated query status by calling
|
|
1050
|
+
* PollFlightInfo() with PollInfo.flight_descriptor. A server
|
|
1051
|
+
* should not respond until the result would be different from last
|
|
1052
|
+
* time. That way, the client can "long poll" for updates
|
|
1053
|
+
* without constantly making requests. Clients can set a short timeout
|
|
1054
|
+
* to avoid blocking calls if desired.
|
|
1055
|
+
*
|
|
1056
|
+
* A client can't use PollInfo.flight_descriptor after
|
|
1057
|
+
* PollInfo.expiration_time passes. A server might not accept the
|
|
1058
|
+
* retry descriptor anymore and the query may be cancelled.
|
|
1059
|
+
*
|
|
1060
|
+
* A client may use the CancelFlightInfo action with
|
|
1061
|
+
* PollInfo.info to cancel the running query.
|
|
1062
|
+
*
|
|
1063
|
+
* @generated from rpc arrow.flight.protocol.FlightService.PollFlightInfo
|
|
1064
|
+
*/
|
|
1065
|
+
pollFlightInfo: {
|
|
1066
|
+
methodKind: "unary";
|
|
1067
|
+
input: typeof FlightDescriptorSchema;
|
|
1068
|
+
output: typeof PollInfoSchema;
|
|
1069
|
+
};
|
|
1070
|
+
/**
|
|
1071
|
+
*
|
|
1072
|
+
* For a given FlightDescriptor, get the Schema as described in Schema.fbs::Schema
|
|
1073
|
+
* This is used when a consumer needs the Schema of flight stream. Similar to
|
|
1074
|
+
* GetFlightInfo this interface may generate a new flight that was not previously
|
|
1075
|
+
* available in ListFlights.
|
|
1076
|
+
*
|
|
1077
|
+
* @generated from rpc arrow.flight.protocol.FlightService.GetSchema
|
|
1078
|
+
*/
|
|
1079
|
+
getSchema: {
|
|
1080
|
+
methodKind: "unary";
|
|
1081
|
+
input: typeof FlightDescriptorSchema;
|
|
1082
|
+
output: typeof SchemaResultSchema;
|
|
1083
|
+
};
|
|
1084
|
+
/**
|
|
1085
|
+
*
|
|
1086
|
+
* Retrieve a single stream associated with a particular descriptor
|
|
1087
|
+
* associated with the referenced ticket. A Flight can be composed of one or
|
|
1088
|
+
* more streams where each stream can be retrieved using a separate opaque
|
|
1089
|
+
* ticket that the flight service uses for managing a collection of streams.
|
|
1090
|
+
*
|
|
1091
|
+
* @generated from rpc arrow.flight.protocol.FlightService.DoGet
|
|
1092
|
+
*/
|
|
1093
|
+
doGet: {
|
|
1094
|
+
methodKind: "server_streaming";
|
|
1095
|
+
input: typeof TicketSchema;
|
|
1096
|
+
output: typeof FlightDataSchema;
|
|
1097
|
+
};
|
|
1098
|
+
/**
|
|
1099
|
+
*
|
|
1100
|
+
* Push a stream to the flight service associated with a particular
|
|
1101
|
+
* flight stream. This allows a client of a flight service to upload a stream
|
|
1102
|
+
* of data. Depending on the particular flight service, a client consumer
|
|
1103
|
+
* could be allowed to upload a single stream per descriptor or an unlimited
|
|
1104
|
+
* number. In the latter, the service might implement a 'seal' action that
|
|
1105
|
+
* can be applied to a descriptor once all streams are uploaded.
|
|
1106
|
+
*
|
|
1107
|
+
* @generated from rpc arrow.flight.protocol.FlightService.DoPut
|
|
1108
|
+
*/
|
|
1109
|
+
doPut: {
|
|
1110
|
+
methodKind: "bidi_streaming";
|
|
1111
|
+
input: typeof FlightDataSchema;
|
|
1112
|
+
output: typeof PutResultSchema;
|
|
1113
|
+
};
|
|
1114
|
+
/**
|
|
1115
|
+
*
|
|
1116
|
+
* Open a bidirectional data channel for a given descriptor. This
|
|
1117
|
+
* allows clients to send and receive arbitrary Arrow data and
|
|
1118
|
+
* application-specific metadata in a single logical stream. In
|
|
1119
|
+
* contrast to DoGet/DoPut, this is more suited for clients
|
|
1120
|
+
* offloading computation (rather than storage) to a Flight service.
|
|
1121
|
+
*
|
|
1122
|
+
* @generated from rpc arrow.flight.protocol.FlightService.DoExchange
|
|
1123
|
+
*/
|
|
1124
|
+
doExchange: {
|
|
1125
|
+
methodKind: "bidi_streaming";
|
|
1126
|
+
input: typeof FlightDataSchema;
|
|
1127
|
+
output: typeof FlightDataSchema;
|
|
1128
|
+
};
|
|
1129
|
+
/**
|
|
1130
|
+
*
|
|
1131
|
+
* Flight services can support an arbitrary number of simple actions in
|
|
1132
|
+
* addition to the possible ListFlights, GetFlightInfo, DoGet, DoPut
|
|
1133
|
+
* operations that are potentially available. DoAction allows a flight client
|
|
1134
|
+
* to do a specific action against a flight service. An action includes
|
|
1135
|
+
* opaque request and response objects that are specific to the type action
|
|
1136
|
+
* being undertaken.
|
|
1137
|
+
*
|
|
1138
|
+
* @generated from rpc arrow.flight.protocol.FlightService.DoAction
|
|
1139
|
+
*/
|
|
1140
|
+
doAction: {
|
|
1141
|
+
methodKind: "server_streaming";
|
|
1142
|
+
input: typeof ActionSchema;
|
|
1143
|
+
output: typeof ResultSchema;
|
|
1144
|
+
};
|
|
1145
|
+
/**
|
|
1146
|
+
*
|
|
1147
|
+
* A flight service exposes all of the available action types that it has
|
|
1148
|
+
* along with descriptions. This allows different flight consumers to
|
|
1149
|
+
* understand the capabilities of the flight service.
|
|
1150
|
+
*
|
|
1151
|
+
* @generated from rpc arrow.flight.protocol.FlightService.ListActions
|
|
1152
|
+
*/
|
|
1153
|
+
listActions: {
|
|
1154
|
+
methodKind: "server_streaming";
|
|
1155
|
+
input: typeof EmptySchema;
|
|
1156
|
+
output: typeof ActionTypeSchema;
|
|
1157
|
+
};
|
|
1158
|
+
}>;
|
|
1159
|
+
//# sourceMappingURL=Flight_pb.d.ts.map
|