@gizmodata/gizmosql-client 1.2.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.
@@ -0,0 +1,184 @@
1
+ // package: arrow.flight.protocol
2
+ // file: proto/Flight.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as grpc from "@grpc/grpc-js";
8
+ import * as proto_Flight_pb from "../proto/Flight_pb";
9
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
10
+
11
+ interface IFlightServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
12
+ handshake: IFlightServiceService_IHandshake;
13
+ listFlights: IFlightServiceService_IListFlights;
14
+ getFlightInfo: IFlightServiceService_IGetFlightInfo;
15
+ pollFlightInfo: IFlightServiceService_IPollFlightInfo;
16
+ getSchema: IFlightServiceService_IGetSchema;
17
+ doGet: IFlightServiceService_IDoGet;
18
+ doPut: IFlightServiceService_IDoPut;
19
+ doExchange: IFlightServiceService_IDoExchange;
20
+ doAction: IFlightServiceService_IDoAction;
21
+ listActions: IFlightServiceService_IListActions;
22
+ }
23
+
24
+ interface IFlightServiceService_IHandshake extends grpc.MethodDefinition<proto_Flight_pb.HandshakeRequest, proto_Flight_pb.HandshakeResponse> {
25
+ path: "/arrow.flight.protocol.FlightService/Handshake";
26
+ requestStream: true;
27
+ responseStream: true;
28
+ requestSerialize: grpc.serialize<proto_Flight_pb.HandshakeRequest>;
29
+ requestDeserialize: grpc.deserialize<proto_Flight_pb.HandshakeRequest>;
30
+ responseSerialize: grpc.serialize<proto_Flight_pb.HandshakeResponse>;
31
+ responseDeserialize: grpc.deserialize<proto_Flight_pb.HandshakeResponse>;
32
+ }
33
+ interface IFlightServiceService_IListFlights extends grpc.MethodDefinition<proto_Flight_pb.Criteria, proto_Flight_pb.FlightInfo> {
34
+ path: "/arrow.flight.protocol.FlightService/ListFlights";
35
+ requestStream: false;
36
+ responseStream: true;
37
+ requestSerialize: grpc.serialize<proto_Flight_pb.Criteria>;
38
+ requestDeserialize: grpc.deserialize<proto_Flight_pb.Criteria>;
39
+ responseSerialize: grpc.serialize<proto_Flight_pb.FlightInfo>;
40
+ responseDeserialize: grpc.deserialize<proto_Flight_pb.FlightInfo>;
41
+ }
42
+ interface IFlightServiceService_IGetFlightInfo extends grpc.MethodDefinition<proto_Flight_pb.FlightDescriptor, proto_Flight_pb.FlightInfo> {
43
+ path: "/arrow.flight.protocol.FlightService/GetFlightInfo";
44
+ requestStream: false;
45
+ responseStream: false;
46
+ requestSerialize: grpc.serialize<proto_Flight_pb.FlightDescriptor>;
47
+ requestDeserialize: grpc.deserialize<proto_Flight_pb.FlightDescriptor>;
48
+ responseSerialize: grpc.serialize<proto_Flight_pb.FlightInfo>;
49
+ responseDeserialize: grpc.deserialize<proto_Flight_pb.FlightInfo>;
50
+ }
51
+ interface IFlightServiceService_IPollFlightInfo extends grpc.MethodDefinition<proto_Flight_pb.FlightDescriptor, proto_Flight_pb.PollInfo> {
52
+ path: "/arrow.flight.protocol.FlightService/PollFlightInfo";
53
+ requestStream: false;
54
+ responseStream: false;
55
+ requestSerialize: grpc.serialize<proto_Flight_pb.FlightDescriptor>;
56
+ requestDeserialize: grpc.deserialize<proto_Flight_pb.FlightDescriptor>;
57
+ responseSerialize: grpc.serialize<proto_Flight_pb.PollInfo>;
58
+ responseDeserialize: grpc.deserialize<proto_Flight_pb.PollInfo>;
59
+ }
60
+ interface IFlightServiceService_IGetSchema extends grpc.MethodDefinition<proto_Flight_pb.FlightDescriptor, proto_Flight_pb.SchemaResult> {
61
+ path: "/arrow.flight.protocol.FlightService/GetSchema";
62
+ requestStream: false;
63
+ responseStream: false;
64
+ requestSerialize: grpc.serialize<proto_Flight_pb.FlightDescriptor>;
65
+ requestDeserialize: grpc.deserialize<proto_Flight_pb.FlightDescriptor>;
66
+ responseSerialize: grpc.serialize<proto_Flight_pb.SchemaResult>;
67
+ responseDeserialize: grpc.deserialize<proto_Flight_pb.SchemaResult>;
68
+ }
69
+ interface IFlightServiceService_IDoGet extends grpc.MethodDefinition<proto_Flight_pb.Ticket, proto_Flight_pb.FlightData> {
70
+ path: "/arrow.flight.protocol.FlightService/DoGet";
71
+ requestStream: false;
72
+ responseStream: true;
73
+ requestSerialize: grpc.serialize<proto_Flight_pb.Ticket>;
74
+ requestDeserialize: grpc.deserialize<proto_Flight_pb.Ticket>;
75
+ responseSerialize: grpc.serialize<proto_Flight_pb.FlightData>;
76
+ responseDeserialize: grpc.deserialize<proto_Flight_pb.FlightData>;
77
+ }
78
+ interface IFlightServiceService_IDoPut extends grpc.MethodDefinition<proto_Flight_pb.FlightData, proto_Flight_pb.PutResult> {
79
+ path: "/arrow.flight.protocol.FlightService/DoPut";
80
+ requestStream: true;
81
+ responseStream: true;
82
+ requestSerialize: grpc.serialize<proto_Flight_pb.FlightData>;
83
+ requestDeserialize: grpc.deserialize<proto_Flight_pb.FlightData>;
84
+ responseSerialize: grpc.serialize<proto_Flight_pb.PutResult>;
85
+ responseDeserialize: grpc.deserialize<proto_Flight_pb.PutResult>;
86
+ }
87
+ interface IFlightServiceService_IDoExchange extends grpc.MethodDefinition<proto_Flight_pb.FlightData, proto_Flight_pb.FlightData> {
88
+ path: "/arrow.flight.protocol.FlightService/DoExchange";
89
+ requestStream: true;
90
+ responseStream: true;
91
+ requestSerialize: grpc.serialize<proto_Flight_pb.FlightData>;
92
+ requestDeserialize: grpc.deserialize<proto_Flight_pb.FlightData>;
93
+ responseSerialize: grpc.serialize<proto_Flight_pb.FlightData>;
94
+ responseDeserialize: grpc.deserialize<proto_Flight_pb.FlightData>;
95
+ }
96
+ interface IFlightServiceService_IDoAction extends grpc.MethodDefinition<proto_Flight_pb.Action, proto_Flight_pb.Result> {
97
+ path: "/arrow.flight.protocol.FlightService/DoAction";
98
+ requestStream: false;
99
+ responseStream: true;
100
+ requestSerialize: grpc.serialize<proto_Flight_pb.Action>;
101
+ requestDeserialize: grpc.deserialize<proto_Flight_pb.Action>;
102
+ responseSerialize: grpc.serialize<proto_Flight_pb.Result>;
103
+ responseDeserialize: grpc.deserialize<proto_Flight_pb.Result>;
104
+ }
105
+ interface IFlightServiceService_IListActions extends grpc.MethodDefinition<proto_Flight_pb.Empty, proto_Flight_pb.ActionType> {
106
+ path: "/arrow.flight.protocol.FlightService/ListActions";
107
+ requestStream: false;
108
+ responseStream: true;
109
+ requestSerialize: grpc.serialize<proto_Flight_pb.Empty>;
110
+ requestDeserialize: grpc.deserialize<proto_Flight_pb.Empty>;
111
+ responseSerialize: grpc.serialize<proto_Flight_pb.ActionType>;
112
+ responseDeserialize: grpc.deserialize<proto_Flight_pb.ActionType>;
113
+ }
114
+
115
+ export const FlightServiceService: IFlightServiceService;
116
+
117
+ export interface IFlightServiceServer extends grpc.UntypedServiceImplementation {
118
+ handshake: grpc.handleBidiStreamingCall<proto_Flight_pb.HandshakeRequest, proto_Flight_pb.HandshakeResponse>;
119
+ listFlights: grpc.handleServerStreamingCall<proto_Flight_pb.Criteria, proto_Flight_pb.FlightInfo>;
120
+ getFlightInfo: grpc.handleUnaryCall<proto_Flight_pb.FlightDescriptor, proto_Flight_pb.FlightInfo>;
121
+ pollFlightInfo: grpc.handleUnaryCall<proto_Flight_pb.FlightDescriptor, proto_Flight_pb.PollInfo>;
122
+ getSchema: grpc.handleUnaryCall<proto_Flight_pb.FlightDescriptor, proto_Flight_pb.SchemaResult>;
123
+ doGet: grpc.handleServerStreamingCall<proto_Flight_pb.Ticket, proto_Flight_pb.FlightData>;
124
+ doPut: grpc.handleBidiStreamingCall<proto_Flight_pb.FlightData, proto_Flight_pb.PutResult>;
125
+ doExchange: grpc.handleBidiStreamingCall<proto_Flight_pb.FlightData, proto_Flight_pb.FlightData>;
126
+ doAction: grpc.handleServerStreamingCall<proto_Flight_pb.Action, proto_Flight_pb.Result>;
127
+ listActions: grpc.handleServerStreamingCall<proto_Flight_pb.Empty, proto_Flight_pb.ActionType>;
128
+ }
129
+
130
+ export interface IFlightServiceClient {
131
+ handshake(): grpc.ClientDuplexStream<proto_Flight_pb.HandshakeRequest, proto_Flight_pb.HandshakeResponse>;
132
+ handshake(options: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.HandshakeRequest, proto_Flight_pb.HandshakeResponse>;
133
+ handshake(metadata: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.HandshakeRequest, proto_Flight_pb.HandshakeResponse>;
134
+ listFlights(request: proto_Flight_pb.Criteria, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.FlightInfo>;
135
+ listFlights(request: proto_Flight_pb.Criteria, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.FlightInfo>;
136
+ getFlightInfo(request: proto_Flight_pb.FlightDescriptor, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.FlightInfo) => void): grpc.ClientUnaryCall;
137
+ getFlightInfo(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.FlightInfo) => void): grpc.ClientUnaryCall;
138
+ getFlightInfo(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.FlightInfo) => void): grpc.ClientUnaryCall;
139
+ pollFlightInfo(request: proto_Flight_pb.FlightDescriptor, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.PollInfo) => void): grpc.ClientUnaryCall;
140
+ pollFlightInfo(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.PollInfo) => void): grpc.ClientUnaryCall;
141
+ pollFlightInfo(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.PollInfo) => void): grpc.ClientUnaryCall;
142
+ getSchema(request: proto_Flight_pb.FlightDescriptor, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.SchemaResult) => void): grpc.ClientUnaryCall;
143
+ getSchema(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.SchemaResult) => void): grpc.ClientUnaryCall;
144
+ getSchema(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.SchemaResult) => void): grpc.ClientUnaryCall;
145
+ doGet(request: proto_Flight_pb.Ticket, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.FlightData>;
146
+ doGet(request: proto_Flight_pb.Ticket, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.FlightData>;
147
+ doPut(): grpc.ClientDuplexStream<proto_Flight_pb.FlightData, proto_Flight_pb.PutResult>;
148
+ doPut(options: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.FlightData, proto_Flight_pb.PutResult>;
149
+ doPut(metadata: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.FlightData, proto_Flight_pb.PutResult>;
150
+ doExchange(): grpc.ClientDuplexStream<proto_Flight_pb.FlightData, proto_Flight_pb.FlightData>;
151
+ doExchange(options: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.FlightData, proto_Flight_pb.FlightData>;
152
+ doExchange(metadata: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.FlightData, proto_Flight_pb.FlightData>;
153
+ doAction(request: proto_Flight_pb.Action, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.Result>;
154
+ doAction(request: proto_Flight_pb.Action, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.Result>;
155
+ listActions(request: proto_Flight_pb.Empty, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.ActionType>;
156
+ listActions(request: proto_Flight_pb.Empty, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.ActionType>;
157
+ }
158
+
159
+ export class FlightServiceClient extends grpc.Client implements IFlightServiceClient {
160
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
161
+ public handshake(options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.HandshakeRequest, proto_Flight_pb.HandshakeResponse>;
162
+ public handshake(metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.HandshakeRequest, proto_Flight_pb.HandshakeResponse>;
163
+ public listFlights(request: proto_Flight_pb.Criteria, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.FlightInfo>;
164
+ public listFlights(request: proto_Flight_pb.Criteria, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.FlightInfo>;
165
+ public getFlightInfo(request: proto_Flight_pb.FlightDescriptor, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.FlightInfo) => void): grpc.ClientUnaryCall;
166
+ public getFlightInfo(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.FlightInfo) => void): grpc.ClientUnaryCall;
167
+ public getFlightInfo(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.FlightInfo) => void): grpc.ClientUnaryCall;
168
+ public pollFlightInfo(request: proto_Flight_pb.FlightDescriptor, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.PollInfo) => void): grpc.ClientUnaryCall;
169
+ public pollFlightInfo(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.PollInfo) => void): grpc.ClientUnaryCall;
170
+ public pollFlightInfo(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.PollInfo) => void): grpc.ClientUnaryCall;
171
+ public getSchema(request: proto_Flight_pb.FlightDescriptor, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.SchemaResult) => void): grpc.ClientUnaryCall;
172
+ public getSchema(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.SchemaResult) => void): grpc.ClientUnaryCall;
173
+ public getSchema(request: proto_Flight_pb.FlightDescriptor, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: proto_Flight_pb.SchemaResult) => void): grpc.ClientUnaryCall;
174
+ public doGet(request: proto_Flight_pb.Ticket, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.FlightData>;
175
+ public doGet(request: proto_Flight_pb.Ticket, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.FlightData>;
176
+ public doPut(options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.FlightData, proto_Flight_pb.PutResult>;
177
+ public doPut(metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.FlightData, proto_Flight_pb.PutResult>;
178
+ public doExchange(options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.FlightData, proto_Flight_pb.FlightData>;
179
+ public doExchange(metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<proto_Flight_pb.FlightData, proto_Flight_pb.FlightData>;
180
+ public doAction(request: proto_Flight_pb.Action, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.Result>;
181
+ public doAction(request: proto_Flight_pb.Action, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.Result>;
182
+ public listActions(request: proto_Flight_pb.Empty, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.ActionType>;
183
+ public listActions(request: proto_Flight_pb.Empty, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<proto_Flight_pb.ActionType>;
184
+ }
@@ -0,0 +1,379 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ // Original file comments:
4
+ //
5
+ // Licensed to the Apache Software Foundation (ASF) under one
6
+ // or more contributor license agreements. See the NOTICE file
7
+ // distributed with this work for additional information
8
+ // regarding copyright ownership. The ASF licenses this file
9
+ // to you under the Apache License, Version 2.0 (the
10
+ // "License"); you may not use this file except in compliance
11
+ // with the License. You may obtain a copy of the License at
12
+ // <p>
13
+ // http://www.apache.org/licenses/LICENSE-2.0
14
+ // <p>
15
+ // Unless required by applicable law or agreed to in writing, software
16
+ // distributed under the License is distributed on an "AS IS" BASIS,
17
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ // See the License for the specific language governing permissions and
19
+ // limitations under the License.
20
+ //
21
+ 'use strict';
22
+ var grpc = require('@grpc/grpc-js');
23
+ var proto_Flight_pb = require('../proto/Flight_pb.js');
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+
26
+ function serialize_arrow_flight_protocol_Action(arg) {
27
+ if (!(arg instanceof proto_Flight_pb.Action)) {
28
+ throw new Error('Expected argument of type arrow.flight.protocol.Action');
29
+ }
30
+ return Buffer.from(arg.serializeBinary());
31
+ }
32
+
33
+ function deserialize_arrow_flight_protocol_Action(buffer_arg) {
34
+ return proto_Flight_pb.Action.deserializeBinary(new Uint8Array(buffer_arg));
35
+ }
36
+
37
+ function serialize_arrow_flight_protocol_ActionType(arg) {
38
+ if (!(arg instanceof proto_Flight_pb.ActionType)) {
39
+ throw new Error('Expected argument of type arrow.flight.protocol.ActionType');
40
+ }
41
+ return Buffer.from(arg.serializeBinary());
42
+ }
43
+
44
+ function deserialize_arrow_flight_protocol_ActionType(buffer_arg) {
45
+ return proto_Flight_pb.ActionType.deserializeBinary(new Uint8Array(buffer_arg));
46
+ }
47
+
48
+ function serialize_arrow_flight_protocol_Criteria(arg) {
49
+ if (!(arg instanceof proto_Flight_pb.Criteria)) {
50
+ throw new Error('Expected argument of type arrow.flight.protocol.Criteria');
51
+ }
52
+ return Buffer.from(arg.serializeBinary());
53
+ }
54
+
55
+ function deserialize_arrow_flight_protocol_Criteria(buffer_arg) {
56
+ return proto_Flight_pb.Criteria.deserializeBinary(new Uint8Array(buffer_arg));
57
+ }
58
+
59
+ function serialize_arrow_flight_protocol_Empty(arg) {
60
+ if (!(arg instanceof proto_Flight_pb.Empty)) {
61
+ throw new Error('Expected argument of type arrow.flight.protocol.Empty');
62
+ }
63
+ return Buffer.from(arg.serializeBinary());
64
+ }
65
+
66
+ function deserialize_arrow_flight_protocol_Empty(buffer_arg) {
67
+ return proto_Flight_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
68
+ }
69
+
70
+ function serialize_arrow_flight_protocol_FlightData(arg) {
71
+ if (!(arg instanceof proto_Flight_pb.FlightData)) {
72
+ throw new Error('Expected argument of type arrow.flight.protocol.FlightData');
73
+ }
74
+ return Buffer.from(arg.serializeBinary());
75
+ }
76
+
77
+ function deserialize_arrow_flight_protocol_FlightData(buffer_arg) {
78
+ return proto_Flight_pb.FlightData.deserializeBinary(new Uint8Array(buffer_arg));
79
+ }
80
+
81
+ function serialize_arrow_flight_protocol_FlightDescriptor(arg) {
82
+ if (!(arg instanceof proto_Flight_pb.FlightDescriptor)) {
83
+ throw new Error('Expected argument of type arrow.flight.protocol.FlightDescriptor');
84
+ }
85
+ return Buffer.from(arg.serializeBinary());
86
+ }
87
+
88
+ function deserialize_arrow_flight_protocol_FlightDescriptor(buffer_arg) {
89
+ return proto_Flight_pb.FlightDescriptor.deserializeBinary(new Uint8Array(buffer_arg));
90
+ }
91
+
92
+ function serialize_arrow_flight_protocol_FlightInfo(arg) {
93
+ if (!(arg instanceof proto_Flight_pb.FlightInfo)) {
94
+ throw new Error('Expected argument of type arrow.flight.protocol.FlightInfo');
95
+ }
96
+ return Buffer.from(arg.serializeBinary());
97
+ }
98
+
99
+ function deserialize_arrow_flight_protocol_FlightInfo(buffer_arg) {
100
+ return proto_Flight_pb.FlightInfo.deserializeBinary(new Uint8Array(buffer_arg));
101
+ }
102
+
103
+ function serialize_arrow_flight_protocol_HandshakeRequest(arg) {
104
+ if (!(arg instanceof proto_Flight_pb.HandshakeRequest)) {
105
+ throw new Error('Expected argument of type arrow.flight.protocol.HandshakeRequest');
106
+ }
107
+ return Buffer.from(arg.serializeBinary());
108
+ }
109
+
110
+ function deserialize_arrow_flight_protocol_HandshakeRequest(buffer_arg) {
111
+ return proto_Flight_pb.HandshakeRequest.deserializeBinary(new Uint8Array(buffer_arg));
112
+ }
113
+
114
+ function serialize_arrow_flight_protocol_HandshakeResponse(arg) {
115
+ if (!(arg instanceof proto_Flight_pb.HandshakeResponse)) {
116
+ throw new Error('Expected argument of type arrow.flight.protocol.HandshakeResponse');
117
+ }
118
+ return Buffer.from(arg.serializeBinary());
119
+ }
120
+
121
+ function deserialize_arrow_flight_protocol_HandshakeResponse(buffer_arg) {
122
+ return proto_Flight_pb.HandshakeResponse.deserializeBinary(new Uint8Array(buffer_arg));
123
+ }
124
+
125
+ function serialize_arrow_flight_protocol_PollInfo(arg) {
126
+ if (!(arg instanceof proto_Flight_pb.PollInfo)) {
127
+ throw new Error('Expected argument of type arrow.flight.protocol.PollInfo');
128
+ }
129
+ return Buffer.from(arg.serializeBinary());
130
+ }
131
+
132
+ function deserialize_arrow_flight_protocol_PollInfo(buffer_arg) {
133
+ return proto_Flight_pb.PollInfo.deserializeBinary(new Uint8Array(buffer_arg));
134
+ }
135
+
136
+ function serialize_arrow_flight_protocol_PutResult(arg) {
137
+ if (!(arg instanceof proto_Flight_pb.PutResult)) {
138
+ throw new Error('Expected argument of type arrow.flight.protocol.PutResult');
139
+ }
140
+ return Buffer.from(arg.serializeBinary());
141
+ }
142
+
143
+ function deserialize_arrow_flight_protocol_PutResult(buffer_arg) {
144
+ return proto_Flight_pb.PutResult.deserializeBinary(new Uint8Array(buffer_arg));
145
+ }
146
+
147
+ function serialize_arrow_flight_protocol_Result(arg) {
148
+ if (!(arg instanceof proto_Flight_pb.Result)) {
149
+ throw new Error('Expected argument of type arrow.flight.protocol.Result');
150
+ }
151
+ return Buffer.from(arg.serializeBinary());
152
+ }
153
+
154
+ function deserialize_arrow_flight_protocol_Result(buffer_arg) {
155
+ return proto_Flight_pb.Result.deserializeBinary(new Uint8Array(buffer_arg));
156
+ }
157
+
158
+ function serialize_arrow_flight_protocol_SchemaResult(arg) {
159
+ if (!(arg instanceof proto_Flight_pb.SchemaResult)) {
160
+ throw new Error('Expected argument of type arrow.flight.protocol.SchemaResult');
161
+ }
162
+ return Buffer.from(arg.serializeBinary());
163
+ }
164
+
165
+ function deserialize_arrow_flight_protocol_SchemaResult(buffer_arg) {
166
+ return proto_Flight_pb.SchemaResult.deserializeBinary(new Uint8Array(buffer_arg));
167
+ }
168
+
169
+ function serialize_arrow_flight_protocol_Ticket(arg) {
170
+ if (!(arg instanceof proto_Flight_pb.Ticket)) {
171
+ throw new Error('Expected argument of type arrow.flight.protocol.Ticket');
172
+ }
173
+ return Buffer.from(arg.serializeBinary());
174
+ }
175
+
176
+ function deserialize_arrow_flight_protocol_Ticket(buffer_arg) {
177
+ return proto_Flight_pb.Ticket.deserializeBinary(new Uint8Array(buffer_arg));
178
+ }
179
+
180
+
181
+ //
182
+ // A flight service is an endpoint for retrieving or storing Arrow data. A
183
+ // flight service can expose one or more predefined endpoints that can be
184
+ // accessed using the Arrow Flight Protocol. Additionally, a flight service
185
+ // can expose a set of actions that are available.
186
+ var FlightServiceService = exports.FlightServiceService = {
187
+ //
188
+ // Handshake between client and server. Depending on the server, the
189
+ // handshake may be required to determine the token that should be used for
190
+ // future operations. Both request and response are streams to allow multiple
191
+ // round-trips depending on auth mechanism.
192
+ handshake: {
193
+ path: '/arrow.flight.protocol.FlightService/Handshake',
194
+ requestStream: true,
195
+ responseStream: true,
196
+ requestType: proto_Flight_pb.HandshakeRequest,
197
+ responseType: proto_Flight_pb.HandshakeResponse,
198
+ requestSerialize: serialize_arrow_flight_protocol_HandshakeRequest,
199
+ requestDeserialize: deserialize_arrow_flight_protocol_HandshakeRequest,
200
+ responseSerialize: serialize_arrow_flight_protocol_HandshakeResponse,
201
+ responseDeserialize: deserialize_arrow_flight_protocol_HandshakeResponse,
202
+ },
203
+ //
204
+ // Get a list of available streams given a particular criteria. Most flight
205
+ // services will expose one or more streams that are readily available for
206
+ // retrieval. This api allows listing the streams available for
207
+ // consumption. A user can also provide a criteria. The criteria can limit
208
+ // the subset of streams that can be listed via this interface. Each flight
209
+ // service allows its own definition of how to consume criteria.
210
+ listFlights: {
211
+ path: '/arrow.flight.protocol.FlightService/ListFlights',
212
+ requestStream: false,
213
+ responseStream: true,
214
+ requestType: proto_Flight_pb.Criteria,
215
+ responseType: proto_Flight_pb.FlightInfo,
216
+ requestSerialize: serialize_arrow_flight_protocol_Criteria,
217
+ requestDeserialize: deserialize_arrow_flight_protocol_Criteria,
218
+ responseSerialize: serialize_arrow_flight_protocol_FlightInfo,
219
+ responseDeserialize: deserialize_arrow_flight_protocol_FlightInfo,
220
+ },
221
+ //
222
+ // For a given FlightDescriptor, get information about how the flight can be
223
+ // consumed. This is a useful interface if the consumer of the interface
224
+ // already can identify the specific flight to consume. This interface can
225
+ // also allow a consumer to generate a flight stream through a specified
226
+ // descriptor. For example, a flight descriptor might be something that
227
+ // includes a SQL statement or a Pickled Python operation that will be
228
+ // executed. In those cases, the descriptor will not be previously available
229
+ // within the list of available streams provided by ListFlights but will be
230
+ // available for consumption for the duration defined by the specific flight
231
+ // service.
232
+ getFlightInfo: {
233
+ path: '/arrow.flight.protocol.FlightService/GetFlightInfo',
234
+ requestStream: false,
235
+ responseStream: false,
236
+ requestType: proto_Flight_pb.FlightDescriptor,
237
+ responseType: proto_Flight_pb.FlightInfo,
238
+ requestSerialize: serialize_arrow_flight_protocol_FlightDescriptor,
239
+ requestDeserialize: deserialize_arrow_flight_protocol_FlightDescriptor,
240
+ responseSerialize: serialize_arrow_flight_protocol_FlightInfo,
241
+ responseDeserialize: deserialize_arrow_flight_protocol_FlightInfo,
242
+ },
243
+ //
244
+ // For a given FlightDescriptor, start a query and get information
245
+ // to poll its execution status. This is a useful interface if the
246
+ // query may be a long-running query. The first PollFlightInfo call
247
+ // should return as quickly as possible. (GetFlightInfo doesn't
248
+ // return until the query is complete.)
249
+ //
250
+ // A client can consume any available results before
251
+ // the query is completed. See PollInfo.info for details.
252
+ //
253
+ // A client can poll the updated query status by calling
254
+ // PollFlightInfo() with PollInfo.flight_descriptor. A server
255
+ // should not respond until the result would be different from last
256
+ // time. That way, the client can "long poll" for updates
257
+ // without constantly making requests. Clients can set a short timeout
258
+ // to avoid blocking calls if desired.
259
+ //
260
+ // A client can't use PollInfo.flight_descriptor after
261
+ // PollInfo.expiration_time passes. A server might not accept the
262
+ // retry descriptor anymore and the query may be cancelled.
263
+ //
264
+ // A client may use the CancelFlightInfo action with
265
+ // PollInfo.info to cancel the running query.
266
+ pollFlightInfo: {
267
+ path: '/arrow.flight.protocol.FlightService/PollFlightInfo',
268
+ requestStream: false,
269
+ responseStream: false,
270
+ requestType: proto_Flight_pb.FlightDescriptor,
271
+ responseType: proto_Flight_pb.PollInfo,
272
+ requestSerialize: serialize_arrow_flight_protocol_FlightDescriptor,
273
+ requestDeserialize: deserialize_arrow_flight_protocol_FlightDescriptor,
274
+ responseSerialize: serialize_arrow_flight_protocol_PollInfo,
275
+ responseDeserialize: deserialize_arrow_flight_protocol_PollInfo,
276
+ },
277
+ //
278
+ // For a given FlightDescriptor, get the Schema as described in Schema.fbs::Schema
279
+ // This is used when a consumer needs the Schema of flight stream. Similar to
280
+ // GetFlightInfo this interface may generate a new flight that was not previously
281
+ // available in ListFlights.
282
+ getSchema: {
283
+ path: '/arrow.flight.protocol.FlightService/GetSchema',
284
+ requestStream: false,
285
+ responseStream: false,
286
+ requestType: proto_Flight_pb.FlightDescriptor,
287
+ responseType: proto_Flight_pb.SchemaResult,
288
+ requestSerialize: serialize_arrow_flight_protocol_FlightDescriptor,
289
+ requestDeserialize: deserialize_arrow_flight_protocol_FlightDescriptor,
290
+ responseSerialize: serialize_arrow_flight_protocol_SchemaResult,
291
+ responseDeserialize: deserialize_arrow_flight_protocol_SchemaResult,
292
+ },
293
+ //
294
+ // Retrieve a single stream associated with a particular descriptor
295
+ // associated with the referenced ticket. A Flight can be composed of one or
296
+ // more streams where each stream can be retrieved using a separate opaque
297
+ // ticket that the flight service uses for managing a collection of streams.
298
+ doGet: {
299
+ path: '/arrow.flight.protocol.FlightService/DoGet',
300
+ requestStream: false,
301
+ responseStream: true,
302
+ requestType: proto_Flight_pb.Ticket,
303
+ responseType: proto_Flight_pb.FlightData,
304
+ requestSerialize: serialize_arrow_flight_protocol_Ticket,
305
+ requestDeserialize: deserialize_arrow_flight_protocol_Ticket,
306
+ responseSerialize: serialize_arrow_flight_protocol_FlightData,
307
+ responseDeserialize: deserialize_arrow_flight_protocol_FlightData,
308
+ },
309
+ //
310
+ // Push a stream to the flight service associated with a particular
311
+ // flight stream. This allows a client of a flight service to upload a stream
312
+ // of data. Depending on the particular flight service, a client consumer
313
+ // could be allowed to upload a single stream per descriptor or an unlimited
314
+ // number. In the latter, the service might implement a 'seal' action that
315
+ // can be applied to a descriptor once all streams are uploaded.
316
+ doPut: {
317
+ path: '/arrow.flight.protocol.FlightService/DoPut',
318
+ requestStream: true,
319
+ responseStream: true,
320
+ requestType: proto_Flight_pb.FlightData,
321
+ responseType: proto_Flight_pb.PutResult,
322
+ requestSerialize: serialize_arrow_flight_protocol_FlightData,
323
+ requestDeserialize: deserialize_arrow_flight_protocol_FlightData,
324
+ responseSerialize: serialize_arrow_flight_protocol_PutResult,
325
+ responseDeserialize: deserialize_arrow_flight_protocol_PutResult,
326
+ },
327
+ //
328
+ // Open a bidirectional data channel for a given descriptor. This
329
+ // allows clients to send and receive arbitrary Arrow data and
330
+ // application-specific metadata in a single logical stream. In
331
+ // contrast to DoGet/DoPut, this is more suited for clients
332
+ // offloading computation (rather than storage) to a Flight service.
333
+ doExchange: {
334
+ path: '/arrow.flight.protocol.FlightService/DoExchange',
335
+ requestStream: true,
336
+ responseStream: true,
337
+ requestType: proto_Flight_pb.FlightData,
338
+ responseType: proto_Flight_pb.FlightData,
339
+ requestSerialize: serialize_arrow_flight_protocol_FlightData,
340
+ requestDeserialize: deserialize_arrow_flight_protocol_FlightData,
341
+ responseSerialize: serialize_arrow_flight_protocol_FlightData,
342
+ responseDeserialize: deserialize_arrow_flight_protocol_FlightData,
343
+ },
344
+ //
345
+ // Flight services can support an arbitrary number of simple actions in
346
+ // addition to the possible ListFlights, GetFlightInfo, DoGet, DoPut
347
+ // operations that are potentially available. DoAction allows a flight client
348
+ // to do a specific action against a flight service. An action includes
349
+ // opaque request and response objects that are specific to the type action
350
+ // being undertaken.
351
+ doAction: {
352
+ path: '/arrow.flight.protocol.FlightService/DoAction',
353
+ requestStream: false,
354
+ responseStream: true,
355
+ requestType: proto_Flight_pb.Action,
356
+ responseType: proto_Flight_pb.Result,
357
+ requestSerialize: serialize_arrow_flight_protocol_Action,
358
+ requestDeserialize: deserialize_arrow_flight_protocol_Action,
359
+ responseSerialize: serialize_arrow_flight_protocol_Result,
360
+ responseDeserialize: deserialize_arrow_flight_protocol_Result,
361
+ },
362
+ //
363
+ // A flight service exposes all of the available action types that it has
364
+ // along with descriptions. This allows different flight consumers to
365
+ // understand the capabilities of the flight service.
366
+ listActions: {
367
+ path: '/arrow.flight.protocol.FlightService/ListActions',
368
+ requestStream: false,
369
+ responseStream: true,
370
+ requestType: proto_Flight_pb.Empty,
371
+ responseType: proto_Flight_pb.ActionType,
372
+ requestSerialize: serialize_arrow_flight_protocol_Empty,
373
+ requestDeserialize: deserialize_arrow_flight_protocol_Empty,
374
+ responseSerialize: serialize_arrow_flight_protocol_ActionType,
375
+ responseDeserialize: deserialize_arrow_flight_protocol_ActionType,
376
+ },
377
+ };
378
+
379
+ exports.FlightServiceClient = grpc.makeGenericClientConstructor(FlightServiceService, 'FlightService');