Last active
May 16, 2018 11:57
-
-
Save blvp/4ac4da7d87f9abe017eae8c9b94676d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object ScalingFactorFunc extends MistFn { | |
| implicit val sfDailyOutMessageEnc = mist.api.encoding.generic.encoder[ScalingFactorDailyOutMessage] | |
| implicit val sfCommonConfigExt = mist.api.encoding.generic.extractor[CommonConfig] | |
| implicit val sfDailyInMessageExt = mist.api.encoding.generic.extractor[ScalingFactorDailyInMessage] | |
| implicit val sfConfigExt = mist.api.encoding.generic.extractor[ScalingFactorConfig] | |
| def handle: Handle = withArgs( | |
| arg[CommonConfig]("cfg"), | |
| arg[ScalingFactorDailyInMessage]("params"), | |
| arg[ScalingFactorConfig]("sfCfg") | |
| ).withMistExtras | |
| .onSparkSession( | |
| (cfg: CommonConfig, | |
| params: ScalingFactorDailyInMessage, | |
| sfCfg: ScalingFactorConfig, | |
| extras: MistExtras, | |
| sparkSession: SparkSession) => { | |
| val result: ScalingFactorDailyOutMessage = ??? | |
| result | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment