Module encode

Source
Expand description

Encoder to create FlightData streams from RecordBatch streams. See FlightDataEncoderBuilder.

Structsยง

FlightDataEncoder
Stream that encodes a stream of record batches to flight data.
FlightDataEncoderBuilder
Creates a [Stream] of FlightDatas from a Stream of Result<[RecordBatch], FlightError>.
FlightIpcEncoder ๐Ÿ”’
The data needed to encode a stream of flight data, holding on to shared Dictionaries.

Enumsยง

DictionaryHandling
Defines how a FlightDataEncoder encodes DictionaryArrays

Constantsยง

GRPC_TARGET_MAX_FLIGHT_SIZE_BYTES
Default target size for encoded FlightData.

Functionsยง

hydrate_dictionaries ๐Ÿ”’
Hydrates any dictionaries arrays in batch to its underlying type. See hydrate_dictionary for more information.
hydrate_dictionary ๐Ÿ”’
Hydrates a dictionary to its underlying type.
prepare_field_for_flight ๐Ÿ”’
prepare_schema_for_flight ๐Ÿ”’
Prepare an arrow Schema for transport over the Arrow Flight protocol
split_batch_for_grpc_response ๐Ÿ”’
Split [RecordBatch] so it hopefully fits into a gRPC response.