Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Usage
revoscalepy.rx_get_compute_context() -> revoscalepy.computecontext.RxComputeContext.RxComputeContext
Description
Gets the active compute context for revoscalepy computations
Arguments
compute_context
Character string specifying class name or description of the specific class to instantiate, or an existing RxComputeContext object. Choices include: “RxLocalSeq” or “local”, “RxInSqlServer”.
Returns
rx_set_compute_context returns the previously active compute context invisibly. rx_get_compute_context returns the active compute context.
See also
RxComputeContext,
RxLocalSeq,
RxInSqlServer,
rx_set_compute_context.
Example
from revoscalepy import RxLocalSeq, RxInSqlServer, rx_get_compute_context, rx_set_compute_context
local_cc = RxLocalSeq()
sql_server_cc = RxInSqlServer('Driver=SQL Server;Server=.;Database=RevoTestDb;Trusted_Connection=True;')
previous_cc = rx_set_compute_context(sql_server_cc)
rx_get_compute_context()