Пример #1
0
 public FlightInfo(Schema schema, FlightDescriptor descriptor, IReadOnlyList <FlightEndpoint> endpoints, long totalRecords = 0, long totalBytes = 0)
 {
     Schema       = schema;
     Descriptor   = descriptor;
     Endpoints    = endpoints;
     TotalBytes   = totalBytes;
     TotalRecords = totalRecords;
 }
Пример #2
0
        internal FlightInfo(Protocol.FlightInfo flightInfo)
        {
            Schema     = FlightMessageSerializer.DecodeSchema(flightInfo.Schema.Memory);
            Descriptor = new FlightDescriptor(flightInfo.FlightDescriptor);

            var endpoints = new List <FlightEndpoint>();

            foreach (var endpoint in flightInfo.Endpoint)
            {
                endpoints.Add(new FlightEndpoint(endpoint));
            }
            Endpoints = endpoints;

            TotalBytes   = flightInfo.TotalBytes;
            TotalRecords = flightInfo.TotalRecords;
        }
Пример #3
0
 private protected FlightRecordBatchStreamWriter(IAsyncStreamWriter <FlightData> clientStreamWriter, FlightDescriptor flightDescriptor)
 {
     _clientStreamWriter = clientStreamWriter;
     _flightDescriptor   = flightDescriptor;
 }