相关疑难解决方法(0)

美元符号在scala中做了什么

当我在这里阅读火花源代码时,我看到了类似的代码$(a_variable).这是什么意思?

我在这里复制代码:

  final val blockSize: IntParam = new IntParam(this, "blockSize",
    "Block size for stacking input data in matrices. Data is stacked within partitions." +
      " If block size is more than remaining data in a partition then " +
      "it is adjusted to the size of this data. Recommended size is between 10 and 1000",
    ParamValidators.gt(0))

  /** @group getParam */
  final def getBlockSize: Int = $(blockSize)
Run Code Online (Sandbox Code Playgroud)

scala

26
推荐指数
1
解决办法
7573
查看次数

标签 统计

scala ×1