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
trait Processor { | |
def process(oraOptionDfConfig: DataFrameReader, sparkSession: SparkSession): Unit | |
} | |
class BMValsProcessor extends Processor { | |
def process(oraOptionDfConfig: DataFrameReader, sparkSession: SparkSession): Unit = { | |
println("in BMValsProcessor") ///actual business logic | |
} | |
} |
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 Solution extends SolutionScope { | |
import Months.Month | |
def solution(y: Int, a: String, b: String, w: String): Int = { | |
implicit val calendar = new Calendar(y, Days.withName(w)) | |
val month1 = Months.withName(a) | |
val month2 = Months.withName(b) |