I meet some scala code with “?” but do not know what it mean in scala, could anyone explain it to me ? Thanks.
And here’s one example
def getJobId(conf: Configuration): String =
?(conf.get("scoobi.jobid")).getOrElse(sys.error("Scoobi job id not set."))
For me it looks like the apply method of Option. Is there somewhere the following import statement in the code:
This means apply is imported as ?. From the doc of Option.apply:
The whole statement means then: