class ParsingSession extends App with CustomParse
Establishes a process record for the custom parsing 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
- ParsingSession
- CustomParse
- Util
- App
- DelayedInit
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
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
- CustomParse
-
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 parsing, supplied via the source configuration.
Custom parameters for parsing, supplied via the source configuration.
- returns
JSON object mapping custom parsing parameters
- Definition Classes
- ParsingSession → CustomParse
-
lazy val
datalakePath: String
- Attributes
- protected
- Definition Classes
- CustomParse
-
lazy val
destFilePath: String
- Attributes
- protected
- Definition Classes
- CustomParse
-
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 parsing process, marking the process as failed and writing a failure log.
Fails the parsing 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 path of the file to be parsed, constructed from the datalake path, source ID, and input ID.
Full path of the file to be parsed, constructed from the datalake path, source ID, and input ID.
- returns
String path to the source file in the DataForge datalake
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
lazy val
forceCaseInsensitiveFlag: Boolean
- Attributes
- protected
- Definition Classes
- CustomParse
-
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()
-
lazy val
inputId: Int
- Attributes
- protected
- Definition Classes
- CustomParse
-
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
- CustomParse → 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
- CustomParse
-
lazy val
originalProcessId: Option[Int]
- Attributes
- protected
- Definition Classes
- Util
-
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
process: JsValue
Starts a new parsing process in the DataForge backend for the specified input ID.
Starts a new parsing process in the DataForge backend for the specified input ID.
- returns
JSON value containing process details and parsing parameters
- Attributes
- protected
- Definition Classes
- ParsingSession → CustomParse → Util
-
lazy val
processId: Int
- Attributes
- protected
- Definition Classes
- CustomParse → Util
-
lazy val
processParameters: JsObject
Parameters for the parsing process, including any standard configuration values.
Parameters for the parsing process, including any standard configuration values.
- returns
JSON object of process parameters
-
def
run(parseCommand: () ⇒ DataFrame): Unit
Performs the heavy lifting of the custom parsing process, executing user code and handling completion.
Performs the heavy lifting of the custom parsing process, executing user code and handling completion.
- parseCommand
A function that takes no parameters and returns a DataFrame; this will be executed and saved
-
def
runParse(parseData: () ⇒ DataFrame): Unit
- Attributes
- protected
- Definition Classes
- CustomParse
-
lazy val
smtpSenderDomain: String
- Attributes
- protected
- Definition Classes
- Util
-
lazy val
sourceId: Int
- Attributes
- protected
- Definition Classes
- CustomParse
-
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