ExaHTTPTransportWrapper#
- class pyexasol.ExaHTTPTransportWrapper(ipaddr: str, port: int, compression: bool = False, encryption: bool = True)[source]#
Bases:
objectWrapper for Parallel.
You may create this wrapper using
pyexasol.http_transport().Note
Starts an HTTP server, obtains the address (the
"ipaddr:port"string), and sends it to the parent process.Block into
export_*()orimport_*()call, wait for incoming connection, process data and exit.- property exa_address: str#
Internal Exasol address as
ipaddr:portstring.Note
This string should be passed from child processes to parent process and used as an argument for
export_parallel()andimport_parallel()functions.
- export_to_callback(callback, dst, callback_params=None)[source]#
Exports chunk of data using callback function.
- Parameters:
callback – Callback function.
dst – Export destination for callback function.
callback_params – Dict with additional parameters for callback function.
- Returns:
Result of the callback function.
Note
You may use exactly the same callbacks utilized by standard non-parallel
export_to_callback()function.
- import_from_callback(callback, src, callback_params=None)[source]#
Import chunk of data using callback function.
- Parameters:
callback – Callback function.
src – Import source for the callback function.
callback_params – Dict with additional parameters for the callback function.
- Returns:
Result of callback function
Note
You may use exactly the same callbacks utilized by standard non-parallel
import_from_callback()function.