Method

ArrowFlightClientdo_put

since: 18.0.0

Declaration [src]

GAFlightDoPutResult*
gaflight_client_do_put (
  GAFlightClient* client,
  GAFlightDescriptor* descriptor,
  GArrowSchema* schema,
  GAFlightCallOptions* options,
  GError** error
)

Description [src]

Upload data to a Flight described by the given descriptor. The caller must call garrow_record_batch_writer_close() on the returned stream once they are done writing.

The reader and writer are linked; closing the writer will also close the reader. Use garrow_flight_stream_writer_done_writing() to only close the write side of the channel.

Available since: 18.0.0

Parameters

descriptor

Type: GAFlightDescriptor

A GAFlightDescriptor.

The data is owned by the caller of the function.
schema

Type: GArrowSchema

A GArrowSchema.

The data is owned by the caller of the function.
options

Type: GAFlightCallOptions

A GAFlightCallOptions.

The argument can be NULL.
The data is owned by the caller of the function.
error

Type: GError **

The return location for a recoverable error.

The argument can be NULL.
If the return location is not NULL, then you must initialize it to a NULL GError*.
The argument will left initialized to NULL by the method if there are no errors.
In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.

Return value

Type: GAFlightDoPutResult

The GAFlighDoPutResult holding a reader and a writer on success, NULL on error.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.