I have a question concerning the difference between these two functions:
def getFunction(checkpointPath: String,
sparkConf: SparkConf,
creatingFunc: () => StreamingContext): StreamingContext = {
function body
}
def getFunction(checkpointPath: String,
sparkConf: SparkConf,
creatingFunc: => StreamingContext): StreamingContext = {
function body
}
so the called by name param is the same:
creatingFunc: => StreamingContext
and
creatingFunc: () => StreamingContext
or no ?