class PostOutputSession extends App with PostOutput
Establishes a process record for the custom post output process. Also starts a heartbeat that allows DataForge to track the health of the process. When running manually, must use one of the below constructors. Otherwise, no parameters are necessary.
- Alphabetic
 - By Inheritance
 
- PostOutputSession
 - PostOutput
 - Util
 - App
 - DelayedInit
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - All
 
Instance Constructors
-  new PostOutputSession(inOutputName: String, inOutputSourceName: String, inProjectName: String)
 -  new PostOutputSession(inOutputName: String, inOutputSourceName: String)
 -  new PostOutputSession()
 - 
      
      
      
        
      
    
      
        
        new
      
      
        PostOutputSession(inEnvironment: String, inOutputName: String, inOutputSourceName: String, inProjectName: String)
      
      
      
- inEnvironment
 The DataForge environment this ingestion should be run against. Not required, deprecated in release 2.5
- inOutputName
 The DataForge output name this post output should be run against. Mandatory when running manually.
- inOutputSourceName
 The DataForge output source name this post output should be run against. Optional when running manually.
- inProjectName
 The DataForge project name this ingestion should be run against. If not provided, Default project will be used.
 
Type Members
- 
      
      
      
        
      
    
      
        
        case class
      
      
        NormalizedAttribute(rawAttributeName: String, columnAlias: String, hiveDdlType: String, upcastExpr: Option[String]) extends Product with Serializable
      
      
      
- Definition Classes
 - Util
 
 
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        AttributeSchemaReads: Reads[NormalizedAttribute]
      
      
      
- Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        alertParameters: JsValue
      
      
      
- Attributes
 - protected
 - Definition Classes
 - PostOutput
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        args: Array[String]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - App
 - Annotations
 - @deprecatedOverriding( "args should not be overridden" , "2.11.0" )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... ) @native()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        close: Unit
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        cloud: String
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        implicit 
        val
      
      
        config: Aux[MacroOptions]
      
      
      
- Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        connectionId: Option[Int]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        connectionParameters: JsObject
      
      
      
Retrieves secure connection parameters from the Databricks Secret store, including public and encrypted private credentials.
Retrieves secure connection parameters from the Databricks Secret store, including public and encrypted private credentials.
- returns
 JSON object containing connection parameters
 - 
      
      
      
        
      
    
      
        
        def
      
      
        convertToObject(j: JsValue): Object
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        coreApiCall(route: String, verb: String = "GET", body: Option[JsValue] = None): JsValue
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        val
      
      
        coreUri: String
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        customParameters: JsObject
      
      
      
Custom parameters for the post output, supplied via constructor or source configuration.
Custom parameters for the post output, supplied via constructor or source configuration.
- returns
 JSON object of custom post output parameters
 - 
      
      
      
        
      
    
      
        
        def
      
      
        endProcess(parameters: JsObject): Unit
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        environment: String
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        val
      
      
        executionStart: Long
      
      
      
- Definition Classes
 - App
 - Annotations
 - @deprecatedOverriding( ... , "2.11.0" )
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        fail(message: String): Unit
      
      
      
Fails the post output process, marking the process as failed and writing a failure log.
Fails the post output process, marking the process as failed and writing a failure log.
- message
 The log message to write along with the failure.
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        filePath: String
      
      
      
Full file path for the post output; applies to file-based outputs.
Full file path for the post output; applies to file-based outputs.
- returns
 String path to the output file, or null if not applicable
 - 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( classOf[java.lang.Throwable] )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        getConnectionParameters: JsObject
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        getProcessSourceName(processId: Int): String
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        jobRunId: Option[Int]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        log(message: String): Unit
      
      
      
Writes a log for the process.
Writes a log for the process. The logs will be visible in the DataForge UI. Severity will default to "I"
- message
 The log message to record.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        log(message: String, severity: String): Unit
      
      
      
Writes a log for the process.
Writes a log for the process. The logs will be visible in the DataForge UI.
- message
 The log message to record.
- severity
 1 character to describe severity. Typically "I" for info or "E" for error.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        logFail(e: Exception): Unit
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        logId: Int
      
      
      
- Attributes
 - protected
 - Definition Classes
 - PostOutput → Util
 
 - 
      
      
      
        
      
    
      
        
        val
      
      
        logger: Logger
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        main(args: Array[String]): Unit
      
      
      
- Definition Classes
 - App
 - Annotations
 - @deprecatedOverriding( "main should not be overridden" , "2.11.0" )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        operationType: String
      
      
      
- Attributes
 - protected
 - Definition Classes
 - PostOutput
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        originalProcessId: Option[Int]
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        outputSourceId: Int
      
      
      
- Attributes
 - protected
 - Definition Classes
 - PostOutput
 
 - 
      
      
      
        
      
    
      
        
        val
      
      
        packageName: String
      
      
      
- Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        pgConnectionLog: Connection
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        implicit 
        lazy val
      
      
        pgConnectionMain: Connection
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        pgConnectionString: String
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        val
      
      
        pgConnectionStringRead: String
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        poParameters: JsObject
      
      
      
Initial parameters for the post output process, including output name, output source name, process ID, version, package, and optional project name.
Initial parameters for the post output process, including output name, output source name, process ID, version, package, and optional project name.
- returns
 JSON object of post output initiation parameters
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        process: JsValue
      
      
      
Starts a new post output process in the DataForge backend with the specified parameters.
Starts a new post output process in the DataForge backend with the specified parameters.
- returns
 JSON value containing process details and output parameters
- Attributes
 - protected
 - Definition Classes
 - PostOutputSession → Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        processId: Int
      
      
      
- Attributes
 - protected
 - Definition Classes
 - PostOutput → Util
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        processParameters: JsObject
      
      
      
Parameters for the post output process, including file path and custom parameters.
Parameters for the post output process, including file path and custom parameters.
- returns
 JSON object of process parameters
 - 
      
      
      
        
      
    
      
        
        def
      
      
        run(postOutputCommands: () ⇒ Unit): Unit
      
      
      
Performs the heavy lifting of the custom post output process, executing user code and handling completion.
Performs the heavy lifting of the custom post output process, executing user code and handling completion.
- postOutputCommands
 A function that takes no parameters and performs post output work
 - 
      
      
      
        
      
    
      
        
        def
      
      
        runPostOutput(postOutputCommands: () ⇒ Unit): Unit
      
      
      
- Attributes
 - protected
 - Definition Classes
 - PostOutput
 
 - 
      
      
      
        
      
    
      
        
        lazy val
      
      
        smtpSenderDomain: String
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        val
      
      
        spark: SparkSession
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        val
      
      
        systemConfiguration: JsValue
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        val
      
      
        version: String
      
      
      
- Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      
- Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... ) @native()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        writeLog(message: String, severity: String): Unit
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        writeParsedData(inDf: DataFrame, sourceId: Int, inputId: Int, destFilePath: String, forceCaseInsensitiveFlag: Boolean): (Long, Long)
      
      
      
- Attributes
 - protected
 - Definition Classes
 - Util
 
 
Deprecated Value Members
- 
      
      
      
        
      
    
      
        
        def
      
      
        delayedInit(body: ⇒ Unit): Unit
      
      
      
- Definition Classes
 - App → DelayedInit
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.11.0) the delayedInit mechanism will disappear