trait ErrorDataFrameBuilder[T <: ErrorCollTargetConfig] extends TargetBuilder[T, DataFrame] with BuildHelpers
- Alphabetic
- By Inheritance
- ErrorDataFrameBuilder
- BuildHelpers
- TargetBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
build(target: T, results: ResultSet)(implicit settings: AppSettings, spark: SparkSession): Result[DataFrame]
Build target output given the target configuration
Build target output given the target configuration
- target
Target configuration
- results
All job results
- settings
Implicit application settings object
- spark
Implicit spark session object
- returns
Target result in form of Spark DataFrame
- Definition Classes
- ErrorDataFrameBuilder → TargetBuilder
-
def
filterErrors(errors: Seq[ResultMetricError], requested: Seq[String], dumpSize: Int): Seq[ResultMetricError]
Filters errors to be send in target.
Filters errors to be send in target.
- errors
Sequence of all collected metric errors
- requested
Sequence of metric IDs for which metric errors are requested
- dumpSize
Maximum number of errors to be collected per each metric
- returns
Filtered sequence of metric errors
- Definition Classes
- BuildHelpers
- Note
If requested metric IDs are not provided (sequence is empty) then errors for all metrics are returned.
-
def
readTemplate(uri: String): Option[String]
Safely reads template from file
Safely reads template from file
- uri
Path to a template file
- returns
Template string read from path or None if read operation wasn't successful.
- Definition Classes
- BuildHelpers