Ejemplo n.º 1
0
 public static SparkSession SparkSession(SparkSessionState livyInfo = default, string name = default, string workspaceName = default, string sparkPoolName = default, string submitterName = default, string submitterId = default, string artifactId = default, SparkJobType?jobType = default, SparkSessionResultType?result = default, SparkScheduler scheduler = default, SparkServicePlugin plugin = default, IReadOnlyList <SparkServiceError> errors = default, IReadOnlyDictionary <string, string> tags = default, int id = default, string appId = default, IReadOnlyDictionary <string, string> appInfo = default, string state = default, IReadOnlyList <string> logLines = default)
 {
     errors ??= new List <SparkServiceError>();
     tags ??= new Dictionary <string, string>();
     appInfo ??= new Dictionary <string, string>();
     logLines ??= new List <string>();
     return(new SparkSession(livyInfo, name, workspaceName, sparkPoolName, submitterName, submitterId, artifactId, jobType, result, scheduler, plugin, errors, tags, id, appId, appInfo, state, logLines));
 }
 public PSLivySessionStateInformation(SparkSessionState stateInfo)
     : base(stateInfo?.NotStartedAt,
            stateInfo?.StartingAt,
            stateInfo?.DeadAt,
            stateInfo?.TerminatedAt,
            stateInfo?.RecoveringAt,
            stateInfo?.CurrentState,
            stateInfo?.JobCreationRequest)
 {
     this.IdleAt         = stateInfo?.IdleAt;
     this.ShuttingDownAt = stateInfo?.ShuttingDownAt;
     this.BusyAt         = stateInfo?.BusyAt;
     this.ErrorAt        = stateInfo?.ErrorAt;
 }